#!/bin/sh
for d in "$@"; do
	cat <<EOF

[${d##*/}]
	path = $d
	read only = yes

[${d##*/}.push]
	path = $d/new
	read only = no
	write only = yes
	refuse options = inplace
	pre-xfer exec =  $(which snap.rsync.pre)
	post-xfer exec = $(which snap.rsync.post)
EOF
done