summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydractl/backup-restore-git3
1 files changed, 3 insertions, 0 deletions
diff --git a/share/hydractl/backup-restore-git b/share/hydractl/backup-restore-git
index 2e9e6c7..f338993 100755
--- a/share/hydractl/backup-restore-git
+++ b/share/hydractl/backup-restore-git
@@ -34,6 +34,9 @@ hydra_backup_environment_service
# TODO: directly at hydra_backup_environment_service
hydractl backup-site $SERVICE
+# Remove current folder
+rm -rf $SERVICE_DIR
+
# Copy site folder from backup.
cp -a $RESTOREDIR/$SERVICE_DIR $SERVICE_DIR