- Timestamp:
- Jul 22, 2009, 1:59:08 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-files.c
r2273 r2289 1037 1037 /** 1038 1038 * Copy the files that Mondo/Mindi need to run to the scratchdir or tempdir. 1039 * Currently this includes: copy Mondo's home directory to scratchdir, untar "mondo_home/payload.tgz"1040 * if it exists,copy LAST-FILELIST-NUMBER to scratchdir, copy mondorestore1039 * Currently this includes: copy Mondo's home directory to scratchdir, 1040 * copy LAST-FILELIST-NUMBER to scratchdir, copy mondorestore 1041 1041 * and post-nuke.tgz (if it exists) to tmpdir, and run "hostname > scratchdir/HOSTNAME". 1042 1042 * @param bkpinfo The backup information structure. Fields used: … … 1069 1069 if (res) { 1070 1070 fatal_error("Failed to copy Mondo's stuff to scratchdir"); 1071 }1072 1073 sprintf(tmp, "%s/payload.tgz", g_mondo_home);1074 if (does_file_exist(tmp)) {1075 log_it("Untarring payload %s to scratchdir %s", tmp,1076 bkpinfo->scratchdir);1077 (void) getcwd(old_pwd, MAX_STR_LEN - 1);1078 chdir(bkpinfo->scratchdir);1079 mr_asprintf(&command, "tar -zxvf %s", tmp);1080 res = run_program_and_log_output(command, FALSE);1081 mr_free(command);1082 1083 if (res) {1084 fatal_error("Failed to untar payload");1085 }1086 chdir(old_pwd);1087 1071 } 1088 1072
Note:
See TracChangeset
for help on using the changeset viewer.