Plan 9 from Bell Labs’s /usr/web/sources/contrib/anothy/bin/rc/vacbak

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/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

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.