diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-08 10:48:55 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-08 10:48:55 -0300 |
commit | cb732a2470cf9fce851a2bce376a2f2ca032f5af (patch) | |
tree | c24798ff5eae73686d007c29f54d3dcb8746d663 /share | |
parent | 85f3a0ca4c43b35b3d7684d767a8dd39468a01e6 (diff) | |
download | hydra-cb732a2470cf9fce851a2bce376a2f2ca032f5af.tar.gz hydra-cb732a2470cf9fce851a2bce376a2f2ca032f5af.tar.bz2 |
Remove git folder before restoring
Diffstat (limited to 'share')
-rwxr-xr-x | share/hydractl/backup-restore-git | 3 |
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 |