diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-01-04 15:43:08 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-01-04 15:43:08 -0200 |
commit | 26cbb26cebd495fd6260b6af65b37fe5c8a8c00b (patch) | |
tree | 02f5dae382c02f04e87d37816e409252f26579a7 /share/hydractl/backup-restore-site | |
parent | f360acf0fab1d941bc7de8bec3d22aabd64f49fe (diff) | |
download | hydra-26cbb26cebd495fd6260b6af65b37fe5c8a8c00b.tar.gz hydra-26cbb26cebd495fd6260b6af65b37fe5c8a8c00b.tar.bz2 |
Support for restoring backups from /var/backups/restore; svn and git restore support
Diffstat (limited to 'share/hydractl/backup-restore-site')
-rwxr-xr-x | share/hydractl/backup-restore-site | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/share/hydractl/backup-restore-site b/share/hydractl/backup-restore-site index 4604755..ae8f87a 100755 --- a/share/hydractl/backup-restore-site +++ b/share/hydractl/backup-restore-site @@ -19,8 +19,10 @@ if [ -z "$SITE" ]; then exit 1 fi -# Check restore stratety. -if [ "$1" == "localhost" ]; then +# Check restore strategy. +if [ "$1" == "backups" ]; then + hydra_backup_environment_local_website $2 restore +elif [ "$1" == "localhost" ] || [ "$1" == "`facter hostname`" ]; then hydra_backup_environment_local $2 restore else hydra_backup_environment_remote $1 restore |