summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/hydra/backup2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hydra/backup b/lib/hydra/backup
index d2208ff..a92782e 100644
--- a/lib/hydra/backup
+++ b/lib/hydra/backup
@@ -44,7 +44,7 @@ function hydra_backup_environment {
fi
fi
- if [ -d "$RESTOREDIR" ]; then
+ if [ -d "$RESTOREDIR" ] && [ "$METHOD" != "restore" ]; then
echo "Restoration folder $RESTOREDIR already exists"
exit 1
fi