]> git.treefish.org Git - backmeupscotty.git/blobdiff - backmeupscotty-example
Fix fake super
[backmeupscotty.git] / backmeupscotty-example
index c49e2adb76d6c00eeb0a90531b9d10994de2be3d..77ee11e3130c4b71abd0b6faa8fc870e2320a7bf 100755 (executable)
@@ -2,15 +2,24 @@
 
 . ./backmeupscotty
 
+REMOTE_USER=root
 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/*"
+BWLIMIT=600KiB
+FAKE_SUPER=0
 
-if ! isIncompleteOrNthDay dest; then
-    scottyinfo "This is not the nth day and no incomplete backup exists."
-    exit 0
-fi
+function prepare {
+    echo "prepare"
+    sleep 5
+}
 
-scottysync /home/alex/backtest/source dest "/gack,/gugu/*"
-scottysync /home/alex/backtest/source2 dest2
+function cleanup {
+    [ -z "$1" ] && echo "normal cleanup" || echo "abort cleanup"
+}
+
+backmeupscotty $@