]> git.treefish.org Git - backmeupscotty.git/commitdiff
Print error when continuing incomplete backup
authorAlexander Schmidt <alex@treefish.org>
Tue, 10 Jun 2014 14:45:30 +0000 (16:45 +0200)
committerAlexander Schmidt <alex@treefish.org>
Tue, 10 Jun 2014 14:45:30 +0000 (16:45 +0200)
backmeupscotty

index 1b7fa19a1cd7c89b59afedef64b4237e5e533806..d1500c1c3d15d7bce4384d9fbd23e033a2cc2f5c 100644 (file)
@@ -37,6 +37,10 @@ function scottysync {
        ssh $REMOTE_HOST "mkdir $REMOTE_BASE/$2"
     fi
 
        ssh $REMOTE_HOST "mkdir $REMOTE_BASE/$2"
     fi
 
+    if (ssh $REMOTE_HOST '[ -d '$REMOTE_BASE/$2/incomplete' ]'); then
+       echo BACKMEUPSCOTTY: Continuing old incomplete backup >&2
+    fi
+
     echo BACKMEUPSCOTTY: Starting rsync
     rsync -e ssh \
        -v -aHAX --numeric-ids --delete --delete-excluded \
     echo BACKMEUPSCOTTY: Starting rsync
     rsync -e ssh \
        -v -aHAX --numeric-ids --delete --delete-excluded \