push 361 B

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