Changeset f665e4a2a1cca85888bddf64e06a093eceec11c7

Show
Ignore:
Timestamp:
02/15/08 19:40:52 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1203104452 +0000
git-parent:

[a840a08dea90e286e4717e0b58e18ad5d0c39f78]

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

implement force incremental backups, closes #22

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • zetaback.in

    ra840a08 rf665e4a  
    1717            $RESTORE $RESTORE_HOST $RESTORE_ZFS $TIMESTAMP 
    1818            $LIST $SUMMARY $SUMMARY_EXT $SUMMARY_VIOLATORS 
    19             $FORCE_FULL $EXPUNGE $NEUTERED $ZFS $SHOW_FILENAME
    20             $ARCHIVE $VERSION $HELP/; 
     19            $FORCE_FULL $FORCE_INC $EXPUNGE $NEUTERED $ZF
     20            $SHOW_FILENAMES $ARCHIVE $VERSION $HELP/; 
    2121$version_string = '0.1'; 
    2222$PREFIX = q^__PREFIX__^; 
     
    6868  "x"       => \$EXPUNGE, 
    6969  "v"       => \$VERSION, 
    70   "f"       => \$FORCE_FULL, 
     70  "ff"      => \$FORCE_FULL, 
     71  "fi"      => \$FORCE_INC, 
    7172  "files"   => \$SHOW_FILENAMES, 
    7273); 
     
    8283$actions++ if($SUMMARY_VIOLATORS); 
    8384$actions++ if($VERSION); 
     85$actions++ if($BACKUP && $FORCE_FULL && $FORCE_INC); 
    8486if($actions != 1) { 
    8587  pod2usage({ -verbose => 0 }); 
     
    917919      } 
    918920      $backup_type = 'full' if($FORCE_FULL); 
     921      $backup_type = 'incremental' if($FORCE_INC); 
    919922 
    920923      print " => doing $backup_type backup\n" if($DEBUG);