]> git.treefish.org Git - backmeupscotty.git/blobdiff - backmeupscotty-example
Added nthdayincomplete test.
[backmeupscotty.git] / backmeupscotty-example
index 452e3c0535ab37f54c8dcd3f1bdaf41eee4ef4db..c49e2adb76d6c00eeb0a90531b9d10994de2be3d 100755 (executable)
@@ -7,5 +7,10 @@ REMOTE_BASE=/home/alex/backtest
 ARCHIVE_KEEPNBACKUPS=30
 ARCHIVE_KEEPNDAYS=1
 
+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