code: plan9front

ref: 65bd53b9b89b0a84d0f16db4adc3f53fa6ab3a3a
dir: /rc/bin/replica/push/

View raw version
#!/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