aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/hydra/backup2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hydra/backup b/lib/hydra/backup
index c056c01..fa21ab8 100644
--- a/lib/hydra/backup
+++ b/lib/hydra/backup
@@ -172,5 +172,5 @@ function hydra_backup_restore_database {
# Return a normalized database name
function hydra_database_name {
# MySQL 16 chars limit
- echo $1 | sed -r 's/(^>.{16}).*/\1/'
+ echo $1 | sed -e 's/^\(................\)/\1/'
}