From cb732a2470cf9fce851a2bce376a2f2ca032f5af Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 8 Mar 2014 10:48:55 -0300 Subject: Remove git folder before restoring --- share/hydractl/backup-restore-git | 3 +++ 1 file changed, 3 insertions(+) (limited to 'share') 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 -- cgit v1.2.3