snaprep

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

snap.genconf (265B)


      1 #!/bin/sh
      2 for d in "$@"; do
      3 	cat <<EOF
      4 
      5 [${d##*/}]
      6 	path = $d
      7 	read only = yes
      8 
      9 [${d##*/}.push]
     10 	path = $d/new
     11 	read only = no
     12 	write only = yes
     13 	refuse options = inplace
     14 	pre-xfer exec =  $(which snap.rsync.pre)
     15 	post-xfer exec = $(which snap.rsync.post)
     16 EOF
     17 done