diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hydra/backup | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/hydra/backup b/lib/hydra/backup index 000bc5a..5d61db3 100644 --- a/lib/hydra/backup +++ b/lib/hydra/backup @@ -168,3 +168,9 @@ function hydra_backup_restore_database { echo "Database should be manually restored" fi } + +# Return a normalized database name +function hydra_database_name { + # MySQL 16 chars limit + echo $1 | sed -r 's/(^>.{16}).*/\1/'" +} |