Changeset 998 in MondoRescue
- Timestamp:
- Dec 7, 2006, 2:01:34 AM (18 years ago)
- Location:
- branches/stable
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/mindi
r997 r998 1064 1064 [ "$INTERNAL_TAPE_BLOCK_SIZE" ] && echo "internal-tape-block-size $INTERNAL_TAPE_BLOCK_SIZE" >> $outfile 1065 1065 use_lzo=$USE_LZO; [ "$use_lzo" = "" ] && use_lzo="no" 1066 use_gzip=$USE_GZIP; [ "$use_gzip" = "" ] && use_gzip="no" 1066 1067 use_comp=$USE_COMP; [ "$use_comp" = "" ] && use_comp="yes" 1067 1068 use_star=$USE_STAR; [ "$use_star" = "" ] && use_star="no" 1068 1069 echo "use-lzo $use_lzo" >> $outfile 1070 echo "use-gzip $use_gzip" >> $outfile 1069 1071 echo "use-star $use_star" >> $outfile 1070 1072 echo "use-comp $use_comp" >> $outfile … … 2632 2634 echo -en "$LAST_FILELIST_NUMBER" > $mountpoint/tmp/LAST-FILELIST-NUMBER 2633 2635 [ "$USE_LZO" = "yes" ] && echo -en "Pras 4 Pres 2004" >> $mountpoint/tmp/USING-LZO 2636 [ "$USE_GZIP" = "yes" ] && echo -en "YES" >> $mountpoint/tmp/USING-GZIP 2634 2637 [ "$USE_COMP" = "yes" ] && echo -en "Compression, yep" >> $mountpoint/tmp/USING-COMP 2635 2638 [ "$USE_STAR" = "yes" ] && echo -en "Using star. Hooray." >> $mountpoint/tmp/USING-STAR … … 2854 2857 INTERNAL_TAPE_BLOCK_SIZE="${18}" 2855 2858 DIFFERENTIAL="${19}" 2856 NOT_BOOT="${20}" 2859 USE_GZIP="${20}" 2860 NOT_BOOT="${21}" 2857 2861 [ "$USE_COMP" = "" ] && USE_COMP=yes 2862 [ "$USE_GZIP" = "" ] && USE_GZIP=no 2858 2863 [ "$NOT_BOOT" = "" ] && NOT_BOOT=no 2859 2864 [ "$TAPEDEV" ] && LogIt "This is a tape-based backup. Fine." -
branches/stable/mindi/rootfs/README
r294 r998 1 # $Id$ 2 # 1 3 README MINDI LINUX / MONDO RESCUE February 7th, 2002 2 4 … … 24 26 accordingly. 25 27 26 Before you e-mail me, please read the FAQ, the manual, the log and preferably28 Before you e-mail us, please read the FAQ, the manual, the log and preferably 27 29 the mailing list. 28 30 29 - Hugo Rabson <hugo@firstlinux.net>31 - Dev Team 30 32 31 33 -
branches/stable/mondo-doc/mondoarchive.8
r954 r998 256 256 257 257 .TP 258 .BI "-G " 259 Use gzip, the standard and quicker Linux compression engine, instead of bzip2. 260 261 .TP 258 262 .BI "-R " 259 263 EXPERIMENTAL. Do not use in mission-critical environments. Star is an alternative to afio. Mondo now supports POSIX ACLs and extended attributes, so -R is essentially redundant for now. -
branches/stable/mondo/src/common/libmondo-archive.c
r949 r998 697 697 char *command; 698 698 char *use_lzo_sz; 699 char *use_gzip_sz; 699 700 char *use_comp_sz; 700 701 char *use_star_sz; … … 727 728 malloc_string(scratchdir); 728 729 malloc_string(use_lzo_sz); 730 malloc_string(use_gzip_sz); 729 731 malloc_string(use_star_sz); 730 732 malloc_string(use_comp_sz); … … 771 773 } else { 772 774 strcpy(use_lzo_sz, "no"); 775 } 776 if (bkpinfo->use_gzip) { 777 strcpy(use_gzip_sz, "yes"); 778 } else { 779 strcpy(use_gzip_sz, "no"); 773 780 } 774 781 if (bkpinfo->use_star) { … … 1003 1010 "mindi --custom %s %s/images '%s' '%s' \ 1004 1011 '%s' %ld '%s' '%s' '%s' \ 1005 '%s' %s %ld '%s' '%s' '%s' '%s' %ld %d ", bkpinfo->tmpdir, // parameter #21012 '%s' %s %ld '%s' '%s' '%s' '%s' %ld %d '%s'", bkpinfo->tmpdir, // parameter #2 1006 1013 bkpinfo->scratchdir, // parameter #3 1007 1014 bkpinfo->kernel_path, // parameter #4 … … 1020 1027 use_star_sz, // parameter #17 1021 1028 bkpinfo->internal_tape_block_size, // parameter #18 (LONG) 1022 bkpinfo->differential); // parameter #19 (INT) 1029 bkpinfo->differential, // parameter #19 (INT) 1030 use_gzip_sz); // parameter #20 (STRING) 1023 1031 1024 1032 // Watch it! This next line adds a parameter... … … 1075 1083 paranoid_free(tmp); 1076 1084 paranoid_free(use_lzo_sz); 1085 paranoid_free(use_gzip_sz); 1077 1086 paranoid_free(scratchdir); 1078 1087 paranoid_free(use_comp_sz); -
branches/stable/mondo/src/common/libmondo-files.c
r888 r998 1358 1358 if (bkpinfo->use_lzo) { 1359 1359 scratchLL = (scratchLL * 2) / 3; 1360 else if (bkpinfo->use_gzip) { 1361 scratchLL = (scratchLL * 2) / 3; 1360 1362 } else { 1361 1363 scratchLL = scratchLL / 2; -
branches/stable/mondo/src/common/libmondo-tools.c
r911 r998 649 649 strcpy(bkpinfo->zip_exe, "lzop"); 650 650 strcpy(bkpinfo->zip_suffix, "lzo"); 651 } else if (bkpinfo->use_gzip) { 652 strcpy(bkpinfo->zip_exe, "gzip"); 653 strcpy(bkpinfo->zip_suffix, "gz"); 651 654 } else if (bkpinfo->compression_level != 0) { 652 655 strcpy(bkpinfo->zip_exe, "bzip2"); … … 967 970 bkpinfo->restore_path[0] = '\0'; 968 971 bkpinfo->use_lzo = FALSE; 972 bkpinfo->use_gzip = FALSE; 969 973 bkpinfo->do_not_compress_these[0] = '\0'; 970 974 bkpinfo->verify_data = FALSE; … … 1122 1126 } 1123 1127 retval += whine_if_not_found("bzip2"); 1128 retval += whine_if_not_found("gzip"); 1124 1129 retval += whine_if_not_found("awk"); 1125 1130 retval += whine_if_not_found("md5sum"); -
branches/stable/mondo/src/common/libmondo-verify.c
r948 r998 337 337 if (bkpinfo->use_lzo) { 338 338 strcpy(sz_exe, "lzop"); 339 else if (bkpinfo->use_gzip) { 340 strcpy(sz_exe, "gzip"); 339 341 } else { 340 342 strcpy(sz_exe, "bzip2"); … … 519 521 strcpy(bkpinfo->zip_suffix, "lzo"); 520 522 bkpinfo->use_lzo = TRUE; 523 bkpinfo->use_gzip = FALSE; 524 } 525 if (strstr(tarball_fname, ".gz") 526 && strcmp(bkpinfo->zip_suffix, "gz")) { 527 log_msg(2, "OK, I'm going to start using gzip."); 528 strcpy(bkpinfo->zip_exe, "gzip"); 529 strcpy(bkpinfo->zip_suffix, "gz"); 530 bkpinfo->use_lzo = FALSE; 531 bkpinfo->use_gzip = TRUE; 521 532 } 522 533 if (strstr(tarball_fname, ".bz2") … … 526 537 strcpy(bkpinfo->zip_suffix, "bz2"); 527 538 bkpinfo->use_lzo = FALSE; 539 bkpinfo->use_gzip = FALSE; 528 540 } 529 541 unlink(outlog); -
branches/stable/mondo/src/common/mondostructures.h
r558 r998 398 398 */ 399 399 bool use_lzo; 400 401 /** 402 * If TRUE, then use @c gzip to compress data. 403 * This is used mainly in estimates. The backup/restore may or may 404 * not work if you do not set this. You should also set @p zip_exe 405 * and @p zip_suffix. 406 */ 407 bool use_gzip; 400 408 401 409 /** -
branches/stable/mondo/src/mondoarchive/mondo-cli.c
r949 r998 926 926 log_to_screen 927 927 ("Please install LZOP. You can't use '-L' until you do.\n"); 928 } 929 } 930 931 if (flag_set['G']) { 932 bkpinfo->use_gzip = TRUE; 933 if (run_program_and_log_output("which gzip", FALSE)) { 934 retval++; 935 log_to_screen 936 ("Please install gzip. You can't use '-G' until you do.\n"); 928 937 } 929 938 } -
branches/stable/mondo/src/mondorestore/mondo-restore.c
r952 r998 1572 1572 if (does_file_exist 1573 1573 (slice_fname 1574 (bigfileno, sliceno, ARCHIVES_PATH, "gz"))) { 1575 strcpy(bzip2_command, "gzip"); 1576 strcpy(suffix, "gz"); 1577 } else 1578 if (does_file_exist 1579 (slice_fname 1574 1580 (bigfileno, sliceno, ARCHIVES_PATH, "bz2"))) { 1575 1581 strcpy(bzip2_command, "bzip2"); … … 2037 2043 if (strstr(tarball_fname, ".bz2")) { 2038 2044 strcpy(executable, "bzip2"); 2045 } else if (strstr(tarball_fname, ".gz")) { 2046 strcpy(executable, "gzip"); 2039 2047 } else if (strstr(tarball_fname, ".lzo")) { 2040 2048 strcpy(executable, "lzop"); -
branches/stable/mondo/src/mondorestore/mondo-rstr-compare.c
r541 r998 317 317 if (strstr(tarball_fname, ".bz2")) { 318 318 strcpy(compressor_exe, "bzip2"); 319 } else if (strstr(tarball_fname, ".gz")) { 320 strcpy(compressor_exe, "gzip"); 319 321 } else if (strstr(tarball_fname, ".lzo")) { 320 322 strcpy(compressor_exe, "lzop"); -
branches/stable/mondo/src/mondorestore/mondo-rstr-tools.c
r951 r998 1136 1136 if (strstr(value, "yes")) { 1137 1137 bkpinfo->use_lzo = TRUE; 1138 bkpinfo->use_gzip = FALSE; 1138 1139 strcpy(bkpinfo->zip_exe, "lzop"); 1139 1140 strcpy(bkpinfo->zip_suffix, "lzo"); 1140 1141 } else { 1141 read_cfg_var(cfg_file, "use- comp", value);1142 read_cfg_var(cfg_file, "use-gzip", value); 1142 1143 if (strstr(value, "yes")) { 1143 1144 bkpinfo->use_lzo = FALSE; 1144 strcpy(bkpinfo->zip_exe, "bzip2"); 1145 strcpy(bkpinfo->zip_suffix, "bz2"); 1145 bkpinfo->use_gzip = TRUE; 1146 strcpy(bkpinfo->zip_exe, "gzip"); 1147 strcpy(bkpinfo->zip_suffix, "gz"); 1146 1148 } else { 1147 bkpinfo->zip_exe[0] = bkpinfo->zip_suffix[0] = '\0'; 1149 read_cfg_var(cfg_file, "use-comp", value); 1150 if (strstr(value, "yes")) { 1151 bkpinfo->use_lzo = FALSE; 1152 bkpinfo->use_gzip = FALSE; 1153 strcpy(bkpinfo->zip_exe, "bzip2"); 1154 strcpy(bkpinfo->zip_suffix, "bz2"); 1155 } else { 1156 bkpinfo->zip_exe[0] = bkpinfo->zip_suffix[0] = '\0'; 1157 } 1148 1158 } 1149 1159 } -
branches/stable/mondo/src/restore-scripts/mondo/restore-bigfiles-from-iso
r567 r998 63 63 if echo "$slicename" | grep "bz2" > /dev/null ; then 64 64 bzip2 -dc $slicename >> "$OUTFNAME" || Die "Failed to decompress slice $slicename" 65 elif echo "$slicename" | grep "gz" > /dev/null ; then 66 gzip -dc $slicename >> "$OUTFNAME" || Die "Failed to decompress slice $slicename" 65 67 elif echo "$slicename" | grep "lzo" > /dev/null ; then 66 68 lzop -dc $slicename >> "$OUTFNAME" || Die "Failed to decompress slice $slicename"
Note:
See TracChangeset
for help on using the changeset viewer.