From 443c25dbf15e214dc25361ede8cc794794db3a78 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 21 Mar 2014 13:07:48 -0300 Subject: Fix: delete uncompressed local backup --- share/hydractl/backup-restore-site | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'share') diff --git a/share/hydractl/backup-restore-site b/share/hydractl/backup-restore-site index 4224f45..9a25738 100755 --- a/share/hydractl/backup-restore-site +++ b/share/hydractl/backup-restore-site @@ -91,8 +91,8 @@ if [ -d "$RESTOREDIR/$FOLDER" ]; then cp -a $RESTOREDIR/$FOLDER $FOLDER fi -# Deleted uncompressed local backup -if [ "$1" == "localhost" ]; then +# Delete uncompressed local backup +if [ "$1" == "localhost" ] || [ "$1" == "backups" ]; then rm -rf $RESTOREDIR/$FOLDER fi -- cgit v1.2.3