Show
Ignore:
Timestamp:
03/29/07 15:58:44 (7 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1175183924 +0000
git-parent:

[0d3cf133824c7eac8f1c183f3c8113f97bb1a10b]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1175183924 +0000
Message:

closes #12

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • zetaback.in

    r2f77710 r005a6e9  
    1616            $PREFIX $CONF $BLOCKSIZE $DEBUG $HOST $BACKUP 
    1717            $RESTORE $RESTORE_HOST $RESTORE_ZFS $TIMESTAMP 
    18             $LIST $SUMMARY $SUMMARY_EXT 
     18            $LIST $SUMMARY $SUMMARY_EXT $FORCE_FULL 
    1919            $EXPUNGE $NEUTERED $ZFS 
    2020            $VERSION $HELP/; 
     
    3939  zetaback [-l | -s | -sx] [-c conf] [-d] [-h host] [-z zfs] 
    4040 
    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] 
    4242 
    4343  zetaback -x [-b] [-c conf] [-d] [-n] [-h host] [-z zfs] 
     
    6464  "x"       => \$EXPUNGE, 
    6565  "v"       => \$VERSION, 
     66  "f"       => \$FORCE_FULL, 
    6667); 
    6768 
     
    182183filesystems require a new full or incremental backup to be taken.  This 
    183184option may be combined with the -x option (to clean up afterwards). 
     185 
     186=item -f 
     187 
     188Forces a full backup to be taken on each disk encountered.  This is used 
     189in combination with -b.  It is recommended to use this option only when 
     190targeting specific disks (via the -h and -z options).  Forcing a full 
     191backup across all machines will cause staggered backups to coalesce and 
     192could cause performance issues. 
    184193 
    185194=item -x 
     
    772781sub plan_and_run($$$) { 
    773782  my ($host, $store, $diskpat) = @_; 
     783  my %suppress; 
    774784  print "Planning '$host'\n" if($DEBUG); 
    775785  my $agent = config_get($host, 'agent'); 
     
    791801      my %snaps; 
    792802      map { $snaps{$_} = 1 } (split(/,/, $2)); 
    793    
     803  
     804      # We've just done this. 
     805      next if($suppress{"$host:$diskname"});  
    794806      # If we are being selective (via -z) now is the time. 
    795807      next 
     
    823835        $backup_type = 'full' unless($have_full_locally); 
    824836      } 
    825    
     837      $backup_type = 'full' if($FORCE_FULL); 
     838 
    826839      print " => doing $backup_type backup\n" if($DEBUG); 
    827840      # We need to drop a __zb_base snap or a __zb_incr snap before we proceed 
     
    854867        unlock($host, dir_encode($diskname), 1); 
    855868      } 
     869      $suppress{"$host:$diskname"} = 1; 
    856870      last if($took_action); 
    857871    }