#!/bin/sh #set -x (leave this uncommented when restoring!) #it seems to mess with standard file descriptors that cpio needs host=`/bin/hostname` test $host = "elysium" && tape=/dev/rmt/1m && nrtape=/dev/rmt/1mn test $host != "elysium" && tape=/dev/rmt/0m && nrtape=/dev/rmt/0mn mt -f $tape rew echo "rewound, hit any key to continue .. \c" read ans echo "first save, skip 0, second, skip 1, third, skip 2 .." echo "enter number to skip: \c" read savenum if [ "$savenum" -lt 1 ] then echo "fsf not necessary .. proceeding without fsf" else fsfnum=`expr $savenum - 1` echo "will do: mt -f $nrtape fsf $savenum, ok? \c" read confirm test "$confirm" != "y" && exit set -x mt -f $nrtape fsf $savenum set +x echo "did fsf $savenum, hit any key to continue .. \c" read ans fi # -f means everything, with the exception of # cpio -Bicmuvdkf \ # "backups/lyra/lyra3/fringe/*" \ # "backups/lyra/lyra3/solve/*" \ # "backups/lyra/lyra1/*" \ # "backups/lyra/lyra2/*" \ # "backups/lyra/lyra4/*" \ # "backups/lyra/lyra5/*" \ # "backups/lyra/lyra6/*" \ # "backups/lyra/lyra7/*" \ # "backups/lyra/lyra8/*" \ # < /dev/rmt/0m #cpio -Bicmuvdk \ #"backups/nereid/argo/ccox/slr/l1/setups/tvg/*" \ #< /dev/rmt/0m #cpio -Bicmuvdk \ #"argo/ccox/slr/l1/setups/tvg/*" \ #< /dev/rmt/0m #cpio -Bicmuvdk \ #"backups/nereid/argo/ccox/slr/st/setups/tvg6/*" \ #< /dev/rmt/0m #cpio -Bicmuvdk \ #"backups/santafe/belford/gfo/system/src/*" \ #< /dev/rmt/0m #cpio -Bicmuvdk \ #backups/santafe/space/users/flemoine/Mail/egm96 \ #< /dev/rmt/0m #cpio -Bicmuvdk \ #"backups/helmert/box/*" \ #< /dev/rmt/0m #cpio -Bicmuvdk \ #"backups/santafe/redcloud/geodyn_bin/*" \ #< /dev/rmt/0m #cpio -Bicmuvdk \ #"backups/santafe/space/users/dpavlis/REF_FRAMES/*" \ #"backups/santafe/space/users/flemoine/higen/*" \ #"backups/santafe/space/users/flemoine/bin/*" \ #"backups/santafe/space/users/flemoine/src/*" \ #"backups/santafe/space/users/flemoine/grace/*" \ #< /dev/rmt/0m #cpio -Bicmuvdk \ #"backups/santafe/space/users/*" \ #< /dev/rmt/0m #cpio -Bicmuvdk \ #"backups/nereid/proteus/*" \ #< /dev/rmt/0m #cpio -Bicmuvdk \ #"backups/shavano/s2/ares2/sfricke/mgs.geodyn2.inputs/*" \ #< /dev/rmt/0m #"backups/shavano/s2/ares4/MGS/FORT40/cat*" \ #cpio -Bicmuvdk \ #"backups/nereid/proteus/jason/poe/work/*" \ #< /dev/rmt/0m cpio -Bicmuvdk \ "backups/lacerta/vlbi/*" \ "backups/lacerta/d2/*" \ < /dev/rmt/0m