From 903b8bbb2deed0a1a827915712ad2ce48b530f8e Mon Sep 17 00:00:00 2001 From: Alexander Schmidt Date: Tue, 10 Jun 2014 16:45:30 +0200 Subject: [PATCH] Print error when continuing incomplete backup --- backmeupscotty | 4 ++++ 1 file changed, 4 insertions(+) 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 \ -- 2.39.5