mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-21 21:33:28 +01:00
Properly translate legacy _DUMP var to DEFAULT_BACKUP
This commit is contained in:
@@ -118,12 +118,12 @@ bootstrap_variables() {
|
|||||||
|
|
||||||
if [ -n "${DB_DUMP_BEGIN}" ]; then
|
if [ -n "${DB_DUMP_BEGIN}" ]; then
|
||||||
print_warn "Deprecated and unsupported variable 'DB_DUMP_BEGIN' detected - Please upgrade your variables as they will be removed in version 4.3.0"
|
print_warn "Deprecated and unsupported variable 'DB_DUMP_BEGIN' detected - Please upgrade your variables as they will be removed in version 4.3.0"
|
||||||
DEFAULT_BACKUP_BEGIN=${DB_BACKUP_BEGIN}
|
DEFAULT_BACKUP_BEGIN=${DB_DUMP_BEGIN}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${DB_DUMP_FREQ}" ]; then
|
if [ -n "${DB_DUMP_FREQ}" ]; then
|
||||||
print_warn "Deprecated and unsupported variable 'DB_DUMP_FREQ' detected - Please upgrade your variables as they will be removed in version 4.3.0"
|
print_warn "Deprecated and unsupported variable 'DB_DUMP_FREQ' detected - Please upgrade your variables as they will be removed in version 4.3.0"
|
||||||
DEFAULT_BACKUP_INTERVAL=${DB_BACKUP_INTERVAL}
|
DEFAULT_BACKUP_INTERVAL=${DB_DUMP_INTERVAL}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${DB_DUMP_TARGET}" ]; then
|
if [ -n "${DB_DUMP_TARGET}" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user