summaryrefslogtreecommitdiff
path: root/share/hydractl
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-01-04 18:47:37 -0200
committerSilvio Rhatto <rhatto@riseup.net>2012-01-04 18:47:37 -0200
commitd3c35a86ed5b65abda550551dae914708ceda827 (patch)
tree1ec332bebc46b3492e77405212eeaa516815b0bd /share/hydractl
parentc198543a2cb0e6277f1f9c920614d39a1b1db00c (diff)
downloadhydra-d3c35a86ed5b65abda550551dae914708ceda827.tar.gz
hydra-d3c35a86ed5b65abda550551dae914708ceda827.tar.bz2
Using backup-site for svn and git restoration
Diffstat (limited to 'share/hydractl')
-rwxr-xr-xshare/hydractl/backup-restore-gitosis4
-rwxr-xr-xshare/hydractl/backup-restore-svn4
2 files changed, 2 insertions, 6 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
diff --git a/share/hydractl/backup-restore-svn b/share/hydractl/backup-restore-svn
index ad17fdf..97ffa74 100755
--- a/share/hydractl/backup-restore-svn
+++ b/share/hydractl/backup-restore-svn
@@ -23,10 +23,8 @@ if [ -d "$RESTOREDIR/var/svn" ]; then
exit 1
fi
-# TODO: more like backup-site
# Backup it.
-mkdir -p /var/site/backups/svn/
-mv /var/svn /var/site/backups/svn/$DATE
+hydractl backup-site svn
# Set svn user.
if hydra_check_user svn; then