Changeset 2379 in MondoRescue for branches/2.2.10/mondo/src/common/libmondo-files.c
- Timestamp:
- Sep 9, 2009, 6:24:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-files.c
r2357 r2379 992 992 * Copy the files that Mondo/Mindi need to run to the scratchdir or tempdir. 993 993 * Currently this includes: copy Mondo's home directory to scratchdir, 994 * copy LAST-FILELIST-NUMBER to scratchdir, copy mondorestore995 * and post-nuke.tgz (if it exists) to tmpdir, andrun "hostname > scratchdir/HOSTNAME".994 * copy LAST-FILELIST-NUMBER to scratchdir, copy post-nuke.tgz (if it exists) to tmpdir, 995 * and run "hostname > scratchdir/HOSTNAME". 996 996 * @param bkpinfo The backup information structure. Fields used: 997 997 * - @c bkpinfo->postnuke_tarball … … 1035 1035 fatal_error("'which mondorestore' returned null. Where's your mondorestore? `which` can't find it. That's odd. Did you install mondorestore?"); 1036 1036 } 1037 mr_asprintf(command, "cp -f %s %s", tmp, bkpinfo->tmpdir); 1038 mr_free(tmp); 1039 1040 res = run_program_and_log_output(command, FALSE); 1041 mr_free(command); 1042 1043 if (res) { 1044 fatal_error("Failed to copy mondorestore to tmpdir"); 1045 } 1037 mr_free(tmp); 1046 1038 1047 1039 mr_asprintf(command, "hostname > %s/HOSTNAME", bkpinfo->scratchdir);
Note:
See TracChangeset
for help on using the changeset viewer.