X-Git-Url: http://git.treefish.org/~alex/backmeupscotty.git/blobdiff_plain/1aa0158b6b4d4aaca7f413d76aec814a206a212b..055e3ffadca7fb5b75a8625de2005f40c888afa9:/backmeupscotty-example?ds=sidebyside diff --git a/backmeupscotty-example b/backmeupscotty-example index b9acea7..a028abe 100755 --- a/backmeupscotty-example +++ b/backmeupscotty-example @@ -10,4 +10,13 @@ BACKUP_RUNEVERYNTHDAY=1 SYNC_SRC="/home/regina/backtest/source" SYNC_EXC="/gack,/gugu/*" -backmeupscotty +function prepare { + echo "prepare" + sleep 5 +} + +function cleanup { + [ -z "$1" ] && echo "normal cleanup" || echo "abort cleanup" +} + +backmeupscotty $@