################################################################################ # RCS-DESC DUMP.METHODS FILE # RCS-DESC # RCS-DESC This is the file 'dump.methods'. It defines how to backup and # RCS-DESC verify according to a defined method. # $Id: dump.methods,v 1.2 1993/10/13 20:40:08 alexis Exp $ ################################################################################ # # A record may span more than one line providing it is terminated with a # backslash. Comments are anything after a hash sign. Blank lines are # ignored. Fields consisting of more than one word must be enclosed in # double quotes. # # # The fields are: # method-tag matched against the methods-tag parameter in the # dump.cycles file. # backup-method string defining how to make the backup. the tokens # SRCDEV, DSTDEV and FROMDATE must be present and will # be substituted for the source-device and # destination-device as defined in the dump.cycles file, # and the date after which newer files will be backed up. # DSTBLK is an optional token. # verification-command string defining how to make the verification. The # same tokens are valid as for the backup-method but only # DSTDEV must be present. # # This method doesn't actually make a backup at all it just prints the # files that have changed. Note the continuation lines and the way of # including a required placeholder without actually using it. # listl "touch `time2touch FROMDATE` /tmp/fromdate; \ cd SRCDEV; \ true DSTDEV BLXOCKS; \ find . -xdev -newer /tmp/fromdate -print 2>/dev/null | less; \ rm /tmp/fromdate" \ \ "echo this is the verify line" # # This is the list method for Sinix # lists "time2date FROMDATE; \ touch `time2touch FROMDATE` /tmp/fromdate; \ cd SRCDEV; \ true DSTDEV BLOCKS; \ find . -mount -newer /tmp/fromdate -print 2>/dev/null | less" \ \ "echo -n \"verifying DSTDEV ... \"; echo \"done\"" # # This method has everything in a script and just passes the parameters # script1 "script1 backup DSTDEV SRCDEV FROMDATE" "script1 verify DSTDEV" # # GNU tar with compression for multivolumes # -l stay on local file system # -M multivolume # -z compression # -v verbose # -f FILE output device # -N DATE newer than # -W verify # # Note that -M and -z are *INCOMPATIBLE*. # gtarzl "cd SRCDEV; \ tar -clMv -f DSTDEV -b 18 \ -N \"`/root/ops/bin/time2date FROMDATE`\" ." # # This method gives cpio with compression for Sinix # cpiozs "touch `time2touch FROMDATE` \ /tmp/fromdate; \ ( \ cd SRCDEV; \ find . -mount -newer /tmp/fromdate -print \ | cpio -o -Htar -v \ | compress > DSTDEV \ ); \ rm /tmp/fromdate" # # This method gives cpio for Linux # cpiol "touch `time2touch FROMDATE` /tmp/fromdate; \ cd SRCDEV; \ find . -xdev -newer /tmp/fromdate -print \ | cpio -o -v -C 9216 -H crc -O DSTDEV \ -M 'Found end of tape. Load next tape and press RETURN. ' STATUS=$\?; \ rm /tmp/fromdate; \ exit $STATUS"