X-Git-Url: https://git.treefish.org/~alex/backmeupscotty.git/blobdiff_plain/2f8f015134f3b5da18ac0fc9e4296d049e542709..055e3ffadca7fb5b75a8625de2005f40c888afa9:/backmeupscotty-example?ds=sidebyside diff --git a/backmeupscotty-example b/backmeupscotty-example index 452e3c0..a028abe 100755 --- a/backmeupscotty-example +++ b/backmeupscotty-example @@ -3,9 +3,20 @@ . ./backmeupscotty REMOTE_HOST=localhost -REMOTE_BASE=/home/alex/backtest -ARCHIVE_KEEPNBACKUPS=30 -ARCHIVE_KEEPNDAYS=1 +REMOTE_DIR=/home/regina/backtest/dest +ARCHIVE_KEEPNBACKUPS=10 +ARCHIVE_KEEPNDAYS=0 +BACKUP_RUNEVERYNTHDAY=1 +SYNC_SRC="/home/regina/backtest/source" +SYNC_EXC="/gack,/gugu/*" -scottysync /home/alex/backtest/source dest "/gack,/gugu/*" -scottysync /home/alex/backtest/source2 dest2 +function prepare { + echo "prepare" + sleep 5 +} + +function cleanup { + [ -z "$1" ] && echo "normal cleanup" || echo "abort cleanup" +} + +backmeupscotty $@