Changeset 1695 in MondoRescue for branches/2.2.5/mondo/src/common/libmondo-archive.c
- Timestamp:
- Oct 21, 2007, 12:17:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mondo/src/common/libmondo-archive.c
r1691 r1695 1086 1086 } 1087 1087 } 1088 sprintf(command, "cp -f %s/mindi-*oot*.img %s/images", 1088 /* For USB we already have everything on the key */ 1089 if (bkpinfo->backup_media_type == usb) { 1090 sprintf(command, "rm -rf %s/images", bkpinfo->scratchdir); 1091 system(tmp); 1092 } else { 1093 sprintf(command, "cp -f %s/mindi-*oot*.img %s/images", 1089 1094 bkpinfo->tmpdir, bkpinfo->scratchdir); 1090 sprintf(tmp, "cp -f %s/images/all.tar.gz %s", bkpinfo->scratchdir,1095 sprintf(tmp, "cp -f %s/images/all.tar.gz %s", bkpinfo->scratchdir, 1091 1096 bkpinfo->tmpdir); 1092 if (system(tmp)) { 1093 fatal_error("Cannot find all.tar.gz in tmpdir"); 1097 if (system(tmp)) { 1098 fatal_error("Cannot find all.tar.gz in tmpdir"); 1099 } 1094 1100 } 1095 1101 if (res) { … … 1907 1913 1908 1914 /* Command to execute */ 1909 asprintf(&tmp,"mv %s/ .??* %s/* %s", bkpinfo->scratchdir, bkpinfo->scratchdir, tmp1);1915 asprintf(&tmp,"mv %s/* %s", bkpinfo->scratchdir, tmp1); 1910 1916 res = eval_call_to_make_USB(tmp, message_to_screen); 1911 1917 if (res) {
Note:
See TracChangeset
for help on using the changeset viewer.