snaprep

git mirror of https://ccx.te2000.cz/bzr/snaprep
git clone https://ccx.te2000.cz/git/snaprep
Log | Files | Refs

commit 41e185c3a457d2b746b05ab601b9ce0c0a7b4e2b
parent 65435009052e82d810710a79080422e1c0418457
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date:   Thu, 20 Feb 2014 22:46:13 +0100

rsyncd config generator
Diffstat:
Abin/snap.genconf | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/bin/snap.genconf b/bin/snap.genconf @@ -0,0 +1,16 @@ +#!/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