This configuration permit to manage client scripts for all vaults on the dirvish server.
master.conf
...
pre-server: ; for prefix in pre post ; do test -f $DIRVISH_DEST/../../dirvish/$prefix-client && scp $DIRVISH_DEST/../../dirvish/$prefix-client $DIRVISH_CLIENT:$DIRVISH_SRC/dirvish.$prefix-client ; done ; exit 0
pre-client: ; if [ -f $DIRVISH_SRC/dirvish.pre-client ] ; then $DIRVISH_SRC/dirvish.pre-client $DIRVISH_SRC $DIRVISH_IMAGE ; fi
post-client: ; if [ -f $DIRVISH_SRC/dirvish.post-client ] ; then $DIRVISH_SRC/dirvish.post-client $DIRVISH_SRC $DIRVISH_IMAGE ; fi
post-server: ; for prefix in pre post ; do test -f $DIRVISH_DEST/../../dirvish/$prefix-client && ssh $DIRVISH_CLIENT rm -f $DIRVISH_SRC/dirvish.$prefix-client ; done ; exit 0
exclude:
dirvish.pre-client
dirvish.post-client
...If you need client scripts, just create your pre-client and/or post-client into the dirvish vault directory. They are send to the client before backup and deleted after.
This can be useful if you don't want to store password or other DB informations readable on the server.
H'nCo (dirvish at handco.org)
