#! /bin/csh -f if ($#argv != 1 ) then echo "usage: $0 localDir" echo " example: $0 ../../neverBackup" exit endif set local = $1; shift # This is basically broken because Dave uses links on his side. # # So to make this work you'd have to break the Mac file system, # which means you can't update the Mac OS, # which means you live in the past, # using obsolete tools. # # so really you have to do the following on seast and # # -then- # # run this script... # # rlogin seasat.ucsd.edu -l YOUR_NAME_HERE # # rm -rf /seasat3/cmData # mkdir -p /seasat3/cmData # chmod 777 /seasat3/cmData # # su # cp /seasat2/bmprep/badlist /seasat3/cmData/badlist # cp -r /seasat2/xyz_* /seasat3/cmData # # cp -r may generate errors because of bad links on seasat... # chmod -R a+rw /seasat3/cmData/ # # exit # Now we just copy the stuff off of seasat3 # note the mount point on the mac may not be what you think. set remote = /Volumes/seasat/cmData/ /bin/rm -rf $local cp -r $remote $local # except that seasat3 may not have enough space. so do the obvious # and copy subdirs of /seasat2/xyz_* a few at a time. But that is # very tedious so buy dave a bigger drive or something like that.