summaryrefslogtreecommitdiff
path: root/share/hydractl/backup-restore-gitosis
diff options
context:
space:
mode:
Diffstat (limited to 'share/hydractl/backup-restore-gitosis')
-rwxr-xr-xshare/hydractl/backup-restore-gitosis4
1 files changed, 1 insertions, 3 deletions
diff --git a/share/hydractl/backup-restore-gitosis b/share/hydractl/backup-restore-gitosis
index f8b9ea3..f8435d6 100755
--- a/share/hydractl/backup-restore-gitosis
+++ b/share/hydractl/backup-restore-gitosis
@@ -37,10 +37,8 @@ else
$GIT_GROUP="root"
fi
-# TODO: more like backup-site
# Backup it.
-mkdir -p /var/site/backups/git/
-mv /var/git /var/site/backups/git/$DATE
+hydractl backup-site git
# Copy site folder from backup.
cp -a $RESTOREDIR/var/git /var/git