diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-21 17:53:22 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-21 17:53:22 -0300 |
commit | aa6e0e9fead7a7922fe47c898601b5f8cfe80354 (patch) | |
tree | 3b1eb3c742fda559aa11c09645b13350d9bbc5f5 /share/hydractl/backup-restore-database | |
parent | 8afafcbdcd7a68dd6d12ba67a9c78efa16c7047d (diff) | |
download | hydra-aa6e0e9fead7a7922fe47c898601b5f8cfe80354.tar.gz hydra-aa6e0e9fead7a7922fe47c898601b5f8cfe80354.tar.bz2 |
Truncate database name to 16 chars max
Diffstat (limited to 'share/hydractl/backup-restore-database')
-rwxr-xr-x | share/hydractl/backup-restore-database | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/hydractl/backup-restore-database b/share/hydractl/backup-restore-database index 1912529..ca0a755 100755 --- a/share/hydractl/backup-restore-database +++ b/share/hydractl/backup-restore-database @@ -23,12 +23,12 @@ hydra_config_load # Parameters. DATE="`date +%Y%m%d`" HOST="$1" -DATABASE="$2" +DATABASE="`hydra_database_name $2`" BASEDIR="/tmp" # Check restore strategy. if [ "$1" == "backups" ]; then - DATABASE="$3" + DATABASE="`hydra_database_name $3`" hydra_backup_environment_local_website $2 $3 elif [ "$HOST" == "localhost" ] || [ "$HOST" == "`facter hostname`" ]; then hydra_backup_environment_local |