summaryrefslogtreecommitdiff
path: root/share/hydractl
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-08 10:48:55 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-08 10:48:55 -0300
commitcb732a2470cf9fce851a2bce376a2f2ca032f5af (patch)
treec24798ff5eae73686d007c29f54d3dcb8746d663 /share/hydractl
parent85f3a0ca4c43b35b3d7684d767a8dd39468a01e6 (diff)
downloadhydra-cb732a2470cf9fce851a2bce376a2f2ca032f5af.tar.gz
hydra-cb732a2470cf9fce851a2bce376a2f2ca032f5af.tar.bz2
Remove git folder before restoring
Diffstat (limited to 'share/hydractl')
-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