plan9fox/rc/bin/replica/push
2011-03-30 18:38:15 +00:00

19 lines
361 B
Bash
Executable file

#!/bin/rc
rfork en
fn usage {
echo 'usage: replica/push [-nv] replica-name [paths]' >[1=2]
exit usage
}
. /rc/bin/replica/defs $*
need clientproto clientexclude cfgopt clientdb clientroot serverroot paths
must servermount
must clientmount
exec replica/applychanges -p $clientproto $clientexclude $opt $cfgopt \
$clientdb $clientroot $serverroot $paths