diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-21 13:07:48 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-21 13:07:48 -0300 |
commit | 443c25dbf15e214dc25361ede8cc794794db3a78 (patch) | |
tree | 119f255c7a4f819405ab96126b8632deed1fe423 | |
parent | 16c95d35ea55e8c1cf14103c00356c6a4a51f167 (diff) | |
download | hydra-443c25dbf15e214dc25361ede8cc794794db3a78.tar.gz hydra-443c25dbf15e214dc25361ede8cc794794db3a78.tar.bz2 |
Fix: delete uncompressed local backup
-rwxr-xr-x | share/hydractl/backup-restore-site | 4 |
1 files changed, 2 insertions, 2 deletions
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 |