]> git.treefish.org Git - backmeupscotty.git/blobdiff - backmeupscotty-example
undo timestamp modification
[backmeupscotty.git] / backmeupscotty-example
index 452e3c0535ab37f54c8dcd3f1bdaf41eee4ef4db..d7a1d07cdf0e281ab882d1439e8e6e31d64cf219 100755 (executable)
@@ -3,9 +3,20 @@
 . ./backmeupscotty
 
 REMOTE_HOST=localhost
-REMOTE_BASE=/home/alex/backtest
-ARCHIVE_KEEPNBACKUPS=30
-ARCHIVE_KEEPNDAYS=1
+REMOTE_DIR=/tmp/scotty/dest
+ARCHIVE_KEEPNBACKUPS=10
+ARCHIVE_KEEPNDAYS=0
+BACKUP_RUNEVERYNTHDAY=1
+SYNC_SRC="/tmp/scotty/src"
+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 $@