]> git.treefish.org Git - backmeupscotty.git/blobdiff - backmeupscotty-example
undo timestamp modification
[backmeupscotty.git] / backmeupscotty-example
index 9418571c3ca1688a566ccfc722448d4723143325..d7a1d07cdf0e281ab882d1439e8e6e31d64cf219 100755 (executable)
@@ -3,23 +3,20 @@
 . ./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/*"
 
 function prepare {
     echo "prepare"
+    sleep 5
 }
 
-function cleanup_normal {
-    echo "cleanup"
+function cleanup {
+    [ -z "$1" ] && echo "normal cleanup" || echo "abort cleanup"
 }
 
-function cleanup_abrt {
-    echo "cleanup_abrt"
-}
-
-backmeupscotty
+backmeupscotty $@