X-Git-Url: https://git.treefish.org/~alex/backmeupscotty.git/blobdiff_plain/29db4d4c855160100b40cc94c5684882092128df..fd81025bfec5e29f8b54a6f52b310d0af6520c88:/backmeupscotty-example?ds=inline diff --git a/backmeupscotty-example b/backmeupscotty-example index 44d97cd..77ee11e 100755 --- a/backmeupscotty-example +++ b/backmeupscotty-example @@ -2,24 +2,24 @@ . ./backmeupscotty +REMOTE_USER=root REMOTE_HOST=localhost -REMOTE_DIR=/home/regina/backtest/dest +REMOTE_DIR=/tmp/scotty/dest ARCHIVE_KEEPNBACKUPS=10 ARCHIVE_KEEPNDAYS=0 BACKUP_RUNEVERYNTHDAY=1 -SYNC_SRC="/home/regina/backtest/source" +SYNC_SRC="/tmp/scotty/src" SYNC_EXC="/gack,/gugu/*" +BWLIMIT=600KiB +FAKE_SUPER=0 function prepare { echo "prepare" + sleep 5 } -function cleanup_normal { - echo "cleanup" -} - -function cleanup_abort { - echo "cleanup_abort" +function cleanup { + [ -z "$1" ] && echo "normal cleanup" || echo "abort cleanup" } backmeupscotty $@