mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-22 13:44:08 +01:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
34abe88159 | ||
|
|
5ffbeeb163 | ||
|
|
c82cee80f8 |
@@ -1,3 +1,9 @@
|
|||||||
|
## 4.0.15 2023-11-16 <dave at tiredofit dot ca>
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Fix cleanup of old backups
|
||||||
|
|
||||||
|
|
||||||
## 4.0.14 2023-11-13 <dave at tiredofit dot ca>
|
## 4.0.14 2023-11-13 <dave at tiredofit dot ca>
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ while true; do
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
symlink_log
|
symlink_log
|
||||||
|
cleanup_old_data
|
||||||
|
|
||||||
if var_false "${persist}" ; then
|
if var_false "${persist}" ; then
|
||||||
print_debug "Exiting due to manual mode"
|
print_debug "Exiting due to manual mode"
|
||||||
|
|||||||
@@ -1631,7 +1631,7 @@ pre_dbbackup() {
|
|||||||
|
|
||||||
### Pre Backup Custom Script Support
|
### Pre Backup Custom Script Support
|
||||||
if [ -d "/assets/custom-scripts/pre" ] && dir_notempty "/assets/custom-scripts/pre" ; then
|
if [ -d "/assets/custom-scripts/pre" ] && dir_notempty "/assets/custom-scripts/pre" ; then
|
||||||
write_log warning "Found Custom Post Scripts in /assets/custom-scripts/pre - Automatically moving them to '${backup_job_script_location_pre}'"
|
write_log warn "Found Custom Post Scripts in /assets/custom-scripts/pre - Automatically moving them to '${backup_job_script_location_pre}'"
|
||||||
mkdir -p "${backup_job_script_location_pre}"
|
mkdir -p "${backup_job_script_location_pre}"
|
||||||
silent cp -aR /assets/custom-scripts/pre/* "${backup_job_script_location_pre}"
|
silent cp -aR /assets/custom-scripts/pre/* "${backup_job_script_location_pre}"
|
||||||
fi
|
fi
|
||||||
@@ -1700,7 +1700,7 @@ EOZP
|
|||||||
|
|
||||||
### Post Backup Custom Script Support
|
### Post Backup Custom Script Support
|
||||||
if [ -d "/assets/custom-scripts/" ] && dir_notempty "/assets/custom-scripts" ; then
|
if [ -d "/assets/custom-scripts/" ] && dir_notempty "/assets/custom-scripts" ; then
|
||||||
write_log warning "Found Custom Post Scripts in /assets/custom-scripts/ - Automatically moving them to '${backup_job_script_location_post}'"
|
write_log warn "Found Custom Post Scripts in /assets/custom-scripts/ - Automatically moving them to '${backup_job_script_location_post}'"
|
||||||
mkdir -p "${backup_job_script_location_post}"
|
mkdir -p "${backup_job_script_location_post}"
|
||||||
cp -aR /assets/custom-scripts/* "${backup_job_script_location_post}"
|
cp -aR /assets/custom-scripts/* "${backup_job_script_location_post}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user