summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-21 13:07:48 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-21 13:07:48 -0300
commit443c25dbf15e214dc25361ede8cc794794db3a78 (patch)
tree119f255c7a4f819405ab96126b8632deed1fe423 /share
parent16c95d35ea55e8c1cf14103c00356c6a4a51f167 (diff)
downloadhydra-443c25dbf15e214dc25361ede8cc794794db3a78.tar.gz
hydra-443c25dbf15e214dc25361ede8cc794794db3a78.tar.bz2
Fix: delete uncompressed local backup
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydractl/backup-restore-site4
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