Compare commits

..

2 Commits

Author SHA1 Message Date
Dave Conroy
d9a4690ea2 Release 3.0.14 - See CHANGELOG.md 2022-03-22 07:52:15 -07:00
Dave Conroy
baba842373 Release 3.0.13 - See CHANGELOG.md 2022-03-21 16:26:45 -07:00
3 changed files with 17 additions and 1 deletions

View File

@@ -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> ## 3.0.12 2022-03-21 <dave at tiredofit dot ca>
### Added ### Added

View File

@@ -343,21 +343,25 @@ compression() {
case "${COMPRESSION,,}" in case "${COMPRESSION,,}" in
gz* ) gz* )
print_notice "Compressing backup with gzip" print_notice "Compressing backup with gzip"
print_debug "Compression Level: '${COMPRESSION_LEVEL}'"
target=${target}.gz target=${target}.gz
dumpoutput="$gzip " dumpoutput="$gzip "
;; ;;
bz* ) bz* )
print_notice "Compressing backup with bzip2" print_notice "Compressing backup with bzip2"
print_debug "Compression Level: '${COMPRESSION_LEVEL}'"
target=${target}.bz2 target=${target}.bz2
dumpoutput="$bzip " dumpoutput="$bzip "
;; ;;
xz* ) xz* )
print_notice "Compressing backup with xzip" print_notice "Compressing backup with xzip"
print_debug "Compression Level: '${COMPRESSION_LEVEL}'"
target=${target}.xz target=${target}.xz
dumpoutput="$xzip " dumpoutput="$xzip "
;; ;;
zst* ) zst* )
print_notice "Compressing backup with zstd" print_notice "Compressing backup with zstd"
print_debug "Compression Level: '${COMPRESSION_LEVEL}'"
target=${target}.zst target=${target}.zst
dumpoutput="$zstd " dumpoutput="$zstd "
;; ;;

View File

@@ -142,7 +142,7 @@ while true; do
exit ${exit_code}; exit ${exit_code};
else else
### Go back to sleep until next backup time ### 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") " 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 fi
done done