Changeset 005a6e999d24b982ddb035d9e43411aba3462b7d for zetaback.in
- Timestamp:
- 03/29/07 15:58:44 (6 years ago)
- git-parent:
- Files:
-
- zetaback.in (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
zetaback.in
r2f77710 r005a6e9 16 16 $PREFIX $CONF $BLOCKSIZE $DEBUG $HOST $BACKUP 17 17 $RESTORE $RESTORE_HOST $RESTORE_ZFS $TIMESTAMP 18 $LIST $SUMMARY $SUMMARY_EXT 18 $LIST $SUMMARY $SUMMARY_EXT $FORCE_FULL 19 19 $EXPUNGE $NEUTERED $ZFS 20 20 $VERSION $HELP/; … … 39 39 zetaback [-l | -s | -sx] [-c conf] [-d] [-h host] [-z zfs] 40 40 41 zetaback -b [- x] [-c conf] [-d] [-n] [-h host] [-z zfs]41 zetaback -b [-f] [-x] [-c conf] [-d] [-n] [-h host] [-z zfs] 42 42 43 43 zetaback -x [-b] [-c conf] [-d] [-n] [-h host] [-z zfs] … … 64 64 "x" => \$EXPUNGE, 65 65 "v" => \$VERSION, 66 "f" => \$FORCE_FULL, 66 67 ); 67 68 … … 182 183 filesystems require a new full or incremental backup to be taken. This 183 184 option may be combined with the -x option (to clean up afterwards). 185 186 =item -f 187 188 Forces a full backup to be taken on each disk encountered. This is used 189 in combination with -b. It is recommended to use this option only when 190 targeting specific disks (via the -h and -z options). Forcing a full 191 backup across all machines will cause staggered backups to coalesce and 192 could cause performance issues. 184 193 185 194 =item -x … … 772 781 sub plan_and_run($$$) { 773 782 my ($host, $store, $diskpat) = @_; 783 my %suppress; 774 784 print "Planning '$host'\n" if($DEBUG); 775 785 my $agent = config_get($host, 'agent'); … … 791 801 my %snaps; 792 802 map { $snaps{$_} = 1 } (split(/,/, $2)); 793 803 804 # We've just done this. 805 next if($suppress{"$host:$diskname"}); 794 806 # If we are being selective (via -z) now is the time. 795 807 next … … 823 835 $backup_type = 'full' unless($have_full_locally); 824 836 } 825 837 $backup_type = 'full' if($FORCE_FULL); 838 826 839 print " => doing $backup_type backup\n" if($DEBUG); 827 840 # We need to drop a __zb_base snap or a __zb_incr snap before we proceed … … 854 867 unlock($host, dir_encode($diskname), 1); 855 868 } 869 $suppress{"$host:$diskname"} = 1; 856 870 last if($took_action); 857 871 }
