aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/backup-restore-database
diff options
context:
space:
mode:
Diffstat (limited to 'share/hydractl/backup-restore-database')
-rwxr-xr-xshare/hydractl/backup-restore-database5
1 files changed, 4 insertions, 1 deletions
diff --git a/share/hydractl/backup-restore-database b/share/hydractl/backup-restore-database
index 996760a..f7fe1c3 100755
--- a/share/hydractl/backup-restore-database
+++ b/share/hydractl/backup-restore-database
@@ -27,7 +27,10 @@ DATABASE="$2"
BASEDIR="/tmp"
# Check restore strategy.
-if [ "$HOST" == "localhost" ] || [ "$HOST" == "`facter hostname`" ]; then
+if [ "$1" == "backups" ]; then
+ DATABASE="$3"
+ hydra_backup_environment_local_website $2 $3
+elif [ "$HOST" == "localhost" ] || [ "$HOST" == "`facter hostname`" ]; then
hydra_backup_environment_local
else
hydra_backup_environment_remote $HOST restore