]> git.treefish.org Git - backmeupscotty.git/blobdiff - backmeupscotty-example
Added nthdayincomplete test.
[backmeupscotty.git] / backmeupscotty-example
index 8ac210036e4f5e44383ec5ddfb1b885e5e579872..c49e2adb76d6c00eeb0a90531b9d10994de2be3d 100755 (executable)
@@ -7,5 +7,10 @@ REMOTE_BASE=/home/alex/backtest
 ARCHIVE_KEEPNBACKUPS=30
 ARCHIVE_KEEPNDAYS=1
 
 ARCHIVE_KEEPNBACKUPS=30
 ARCHIVE_KEEPNDAYS=1
 
-scottysync /home/alex/backtest/source dest "abab"
-scottysync /home/alex/backtest/source2 dest2 "abab"
+if ! isIncompleteOrNthDay dest; then
+    scottyinfo "This is not the nth day and no incomplete backup exists."
+    exit 0
+fi
+
+scottysync /home/alex/backtest/source dest "/gack,/gugu/*"
+scottysync /home/alex/backtest/source2 dest2