aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/backup-restore-site
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-27 17:29:01 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-27 17:29:01 -0300
commit11233840b1c822a323010c5f91f62389cc8e9368 (patch)
tree44ca978fd869748cf2e8b2b29f67adfc3d3ff1e2 /share/hydractl/backup-restore-site
parentff32bc68bc51908abdd56c440b7570348f1834a8 (diff)
downloadhydra-11233840b1c822a323010c5f91f62389cc8e9368.tar.gz
hydra-11233840b1c822a323010c5f91f62389cc8e9368.tar.bz2
Support for restore method
Diffstat (limited to 'share/hydractl/backup-restore-site')
-rwxr-xr-xshare/hydractl/backup-restore-site4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/hydractl/backup-restore-site b/share/hydractl/backup-restore-site
index bf68779..16ebf93 100755
--- a/share/hydractl/backup-restore-site
+++ b/share/hydractl/backup-restore-site
@@ -8,7 +8,7 @@
source $APP_BASE/lib/hydra/functions || exit 1
hydra_config_load
-SITE="$3"
+SITE="$2"
SITES="/var/sites"
FOLDER="$SITES/$SITE"
@@ -17,7 +17,7 @@ if [ -z "$SITE" ]; then
exit 1
fi
-hydra_backup_environment $*
+hydra_backup_environment $1 restore
# Check if folder exist on the backup
if [ ! -d "$RESTOREDIR/$FOLDER" ]; then