From: Silvio Rhatto Date: Fri, 21 Mar 2014 16:07:48 +0000 (-0300) Subject: Fix: delete uncompressed local backup X-Git-Tag: 0.2.2~49 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=443c25dbf15e214dc25361ede8cc794794db3a78;p=hydra.git Fix: delete uncompressed local backup --- 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