#!/9/bin/rc rfork en # 30 2 * * * export PLAN9=/9; export PATH=$PATH:$PLAN9/bin; /1/bin/vacbak tet base=/1/lib/vacbak name=$1 today=`{date +%Y%m%d} cd $base # flattens directories this way #vac -h 9srv.net -a $name.vac -e '.../tmp/...' `{cat $name.files} vac -h 9srv.net -a $name.vac -x $base/$name.xfiles `{cat $name.files} cp $name.vac $name-$today.vac # This is for a score submission service on 9srv.net, but it restricts # which hosts it'll talk to; see /n/sources/contrib/anothy/bin/rc/tcp17038 #{echo $name ; cat $name.vac} | dial tcp!9srv.net!17038