From: Alexander Schmidt Date: Tue, 10 Jun 2014 14:45:30 +0000 (+0200) Subject: Print error when continuing incomplete backup X-Git-Url: https://git.treefish.org/~alex/backmeupscotty.git/commitdiff_plain/903b8bbb2deed0a1a827915712ad2ce48b530f8e Print error when continuing incomplete backup --- diff --git a/backmeupscotty b/backmeupscotty index 1b7fa19..d1500c1 100644 --- a/backmeupscotty +++ b/backmeupscotty @@ -37,6 +37,10 @@ function scottysync { 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 \