summaryrefslogtreecommitdiff
path: root/rc/bin/replica/push
blob: 635bc6b2ca8750eb83d3d88ee24ee5b622b0af17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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