diff options
-rw-r--r-- | lib/hydra/backup | 2 | ||||
-rwxr-xr-x | share/hydractl/backup-restore-database | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/hydra/backup b/lib/hydra/backup index 3f2d91f..0fb6e80 100644 --- a/lib/hydra/backup +++ b/lib/hydra/backup @@ -156,7 +156,7 @@ function hydra_backup_restore_database { fi # Restore database - if [ ! -z "$DB_DUMP_EXT" ]; then + if [ ! -z "$DB_DUMP_EXTRACT" ]; then echo "Restoring database $DATABASE..." hydra_set_tmpfile $DATABASE -d cp $DB_DUMP_BASE/$DATABASE.sql$DB_DUMP_EXT $TMPWORK diff --git a/share/hydractl/backup-restore-database b/share/hydractl/backup-restore-database index f7fe1c3..1912529 100755 --- a/share/hydractl/backup-restore-database +++ b/share/hydractl/backup-restore-database @@ -38,4 +38,3 @@ fi # Restore database hydra_backup_restore_database $DATABASE - |