#!/bin/csh # Written by Scott Noble # This script seeks out all files (except junk files) modified within # the past 1 day on the linux machines and tars them to tape. The # linux machines are: # wh0 set DATE = `date +%b-%d` foreach i ( head ) touch /backups/machines/$DATE-${i}-level-0 tar cvf head:/dev/nst0 /backups/machines/$DATE-${i}-level-0 rsh ${i} "(find /opt /home \! \( -type d \) -mount > /backups/${i}-level-0-index ; tar cf head:/dev/nst0 -T /backups/${i}-level-0-index)" rm -f /backups/machines/$DATE-${i}-level-0 end foreach i ( store ) touch /backups/machines/$DATE-${i}-level-0 tar cvf head:/dev/nst0 /backups/machines/$DATE-${i}-level-0 rsh ${i} "(find /var /home2 \! \( -type d \) -mount > /backups/${i}-level-0-index ; tar cf head:/dev/nst0 -T /backups/${i}-level-0-index)" rm -f /backups/machines/$DATE-${i}-level-0 end