# # Methods file # # Entries in this file are composed of two fields. The first is a method # tag with which entries in the cycles file reference methods defined here. # The second field is the method. This can be whatever you want, but should # include placeholders for the required parameters of a backup namely # the source device, diretory or file (FROMDEV), the destination device or # file (TODEV) and the date for which files modified since this date should # be included in the backup (FROMDATE). # # # 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 FROMDEV; \ true TODEV; \ find . -xdev -newer /tmp/fromdate -print 2>/dev/null | less; \ rm /tmp/fromdate" # # This method has everything in a script and just passes the parameters # script1 "script1 TODEV FROMDEV FROMDATE" # # 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 FROMDEV; \ tar -clMv -f TODEV -b 18 \ -N \"`/root/ops/bin/time2date FROMDATE`\" ." # # This method gives cpio with compression for Sinix # cpiozs "touch `time2touch FROMDATE` \ /tmp/fromdate; \ ( \ cd FROMDEV; \ find . -mount -newer /tmp/fromdate -print \ | cpio -o -Htar -v \ | compress > TODEV \ ); \ rm /tmp/fromdate" # # This method gives cpio for Linux # cpiol "touch `time2touch FROMDATE` /tmp/fromdate; \ cd FROMDEV; \ find . -xdev -newer /tmp/fromdate -print \ | cpio -o -v -C 9216 -H crc -O TODEV \ -M 'Found end of tape. Load next tape and press RETURN. ' STATUS=$\?; \ rm /tmp/fromdate; \ exit $STATUS"