mirror of
https://github.com/tiredofit/docker-db-backup.git
synced 2025-12-22 13:44:08 +01:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d9a4690ea2 | ||
|
|
baba842373 |
12
CHANGELOG.md
12
CHANGELOG.md
@@ -1,3 +1,15 @@
|
||||
## 3.0.14 2022-03-22 <dave at tiredofit dot ca>
|
||||
|
||||
### Changed
|
||||
- Rearrange Notice stating when next backup is going to start
|
||||
|
||||
|
||||
## 3.0.13 2022-03-21 <dave at tiredofit dot ca>
|
||||
|
||||
### Added
|
||||
- Add compression levels to debug mode
|
||||
|
||||
|
||||
## 3.0.12 2022-03-21 <dave at tiredofit dot ca>
|
||||
|
||||
### Added
|
||||
|
||||
@@ -343,21 +343,25 @@ compression() {
|
||||
case "${COMPRESSION,,}" in
|
||||
gz* )
|
||||
print_notice "Compressing backup with gzip"
|
||||
print_debug "Compression Level: '${COMPRESSION_LEVEL}'"
|
||||
target=${target}.gz
|
||||
dumpoutput="$gzip "
|
||||
;;
|
||||
bz* )
|
||||
print_notice "Compressing backup with bzip2"
|
||||
print_debug "Compression Level: '${COMPRESSION_LEVEL}'"
|
||||
target=${target}.bz2
|
||||
dumpoutput="$bzip "
|
||||
;;
|
||||
xz* )
|
||||
print_notice "Compressing backup with xzip"
|
||||
print_debug "Compression Level: '${COMPRESSION_LEVEL}'"
|
||||
target=${target}.xz
|
||||
dumpoutput="$xzip "
|
||||
;;
|
||||
zst* )
|
||||
print_notice "Compressing backup with zstd"
|
||||
print_debug "Compression Level: '${COMPRESSION_LEVEL}'"
|
||||
target=${target}.zst
|
||||
dumpoutput="$zstd "
|
||||
;;
|
||||
|
||||
@@ -142,7 +142,7 @@ while true; do
|
||||
exit ${exit_code};
|
||||
else
|
||||
### Go back to sleep until next backup time
|
||||
sleep $(($DB_DUMP_FREQ*60-backup_total_time))
|
||||
print_notice "Sleeping for another $(($DB_DUMP_FREQ*60-backup_total_time)) seconds. Waking up at $(date -d@"$(( $(date +%s)+$(($DB_DUMP_FREQ*60-backup_total_time))))" +"%Y-%m-%d %T %Z") "
|
||||
sleep $(($DB_DUMP_FREQ*60-backup_total_time))
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user