#!/bin/csh # Written by Jason Ventrella # This script seeks out all files (except junk files) on the # vnfe3 of the Von Neumann Beowulf cluster and tars them to tape. # vnfe1 handles level-0s and weeklys # vnfe3 handles incrementals # # -- this script just finds the files that need to be backed up. # the other scrip "vnfe3-level-0-backup_tar" makes the archive. # set DATE = `date +%b-%d` foreach i ( 3 ) ssh vnfe$i "(find / \( \( -user suqin -and \( -path '*C2_slot*.f' -o -path '*LES*.f' -o -path '*y_long_concentration_random*.f' \) \) -or \( -not -user suqin -and \( -not \( -name '*.sdf' -o -name '*.sdf.gz' -o -name '*.dat' -o -name '*.dat.gz' -o -name '*.hdf' -o -name '*.segdat' -o -name '*.rgb' -o -name '*.o' -o -name core -o -type d \) \) \) \) -mount | grep -v .netscape/cache > /backups/vnfe$i-level-0-index)" ssh vnfe$i "(find /home2 \( \( -user suqin -and \( -path '*C2_slot*.f' -o -path '*LES*.f' -o -path '*y_long_concentration_random*.f' \) \) -or \( -not -user suqin -and \( -not \( -name '*.sdf' -o -name '*.sdf.gz' -o -name '*.dat' -o -name '*.dat.gz' -o -name '*.hdf' -o -name '*.segdat' -o -name '*.rgb' -o -name '*.o' -o -name core -o -type d \) \) \) \) -mount | grep -v .netscape/cache > /backups/vnfe$i-home2-level-0-index)" end