mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-21 21:33:28 +01:00
Release 3.0.12 - See CHANGELOG.md
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
## 3.0.12 2022-03-21 <dave at tiredofit dot ca>
|
||||
|
||||
### Added
|
||||
- Throw Errors for MANUAL mode when certain other CONTAINER_* services are enabled
|
||||
|
||||
|
||||
## 3.0.11 2022-03-21 <dave at tiredofit dot ca>
|
||||
|
||||
### Changed
|
||||
|
||||
@@ -460,7 +460,7 @@ setup_mode() {
|
||||
if [ "${MODE,,}" = "auto" ] || [ ${MODE,,} = "default" ] ; then
|
||||
print_debug "Running in Auto / Default Mode - Letting Image control scheduling"
|
||||
else
|
||||
print_info "Running in Manual mode - Execute 'backup_now' to run a manual backup"
|
||||
print_info "Running in Manual mode - Execute 'backup_now' or '/etc/services.available/10-db-backup/run' to perform a manual backup"
|
||||
service_stop 10-db-backup
|
||||
if var_true "${MANUAL_RUN_FOREVER}" ; then
|
||||
mkdir -p /etc/services.d/99-run_forever
|
||||
@@ -472,6 +472,19 @@ do
|
||||
done
|
||||
EOF
|
||||
chmod +x /etc/services.d/99-run_forever/run
|
||||
else
|
||||
if var_true "${CONTAINER_ENABLE_SCHEDULING}" ; then
|
||||
print_error "Manual / Exit after execution mode doesn't work with 'CONTAINER_ENABLE_SCHEDULING=TRUE'"
|
||||
exit 1
|
||||
fi
|
||||
if var_true "${CONTAINER_ENABLE_MONITORING}" ; then
|
||||
print_error "Manual / Exit after execution mode doesn't work with 'CONTAINER_ENABLE_MONITORING=TRUE'"
|
||||
exit 1
|
||||
fi
|
||||
if var_true "${CONTAINER_ENABLE_LOGSHIPPING}" ; then
|
||||
print_error "Manual / Exit after execution mode doesn't work with 'CONTAINER_ENABLE_LOGSHIPPING=TRUE'"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
}
|
||||
@@ -11,6 +11,7 @@ bootstrap_variables
|
||||
if [ "${MODE,,}" = "manual" ] ; then
|
||||
DB_DUMP_BEGIN=+0
|
||||
manual=TRUE
|
||||
print_debug "Detected Manual Mode"
|
||||
fi
|
||||
|
||||
case "${1,,}" in
|
||||
@@ -32,7 +33,7 @@ case "${1,,}" in
|
||||
:
|
||||
;;
|
||||
* )
|
||||
if [ "${manual,,}" = "true" ]; then
|
||||
if [ "${manual,,}" != "true" ]; then
|
||||
current_time=$(date +"%s")
|
||||
today=$(date +"%Y%m%d")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user