X-Git-Url: https://git.treefish.org/~alex/backmeupscotty.git/blobdiff_plain/f75a0bf675b1ba2f68d5aede1d9be210b54490d4..1e430b756d9a96193c5a78fbf18b0ec05094307b:/backmeupscotty-example?ds=inline diff --git a/backmeupscotty-example b/backmeupscotty-example index cad9631..15b05b5 100755 --- a/backmeupscotty-example +++ b/backmeupscotty-example @@ -3,23 +3,21 @@ . ./backmeupscotty 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 function prepare { echo "prepare" + sleep 5 } -function cleanup_normal { - echo "cleanup" -} - -function cleanup_abrt { - echo "cleanup_abrt" +function cleanup { + [ -z "$1" ] && echo "normal cleanup" || echo "abort cleanup" } backmeupscotty $@