summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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