From c358958a96c0ceb9d89661d7cdd3f5dcd9ecb5e3 Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Tue, 1 Oct 2013 16:47:14 +0200 Subject: [PATCH] Also rotate when transfer is not complete due to vanished source files --- server/usr/local/bin/rs-rotate | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/usr/local/bin/rs-rotate b/server/usr/local/bin/rs-rotate index 4da5a3e..e47a35d 100755 --- a/server/usr/local/bin/rs-rotate +++ b/server/usr/local/bin/rs-rotate @@ -10,6 +10,6 @@ if [ "$RSYNC_EXIT_STATUS" == "" ]; then exit 1 fi -if [ $RSYNC_EXIT_STATUS -eq 0 ]; then +if [ $RSYNC_EXIT_STATUS -eq 0 ] || [ $RSYNC_EXIT_STATUS -eq 24 ]; then rsnapshot -c "$1" push fi