with this changes all the backup components will be log to stdout/err making the flow easy to check and debug:
2024-06-22 17:28:46 - INFO - [run] retaining only the 6 most recent backups, cleanup occurs every 60 seconds
2024-06-22 17:29:47 - INFO - [run] removing backups: 901277.tar.zstd
2024-06-22 17:30:28 - INFO - [restore] no other process are running, restoring
2024-06-22 17:30:28 - INFO - [restore] restore backup with backup number #901283
2024-06-22 17:30:28 - INFO - [restore] Backup file found, proceeding
2024-06-22 17:30:28 - INFO - [restore] restoring 901283 Done
2024-06-22 17:30:34 - INFO - [backup] no other backup process are running
2024-06-22 17:30:34 - INFO - [backup] running backup 901284
2024-06-22 17:30:35 - INFO - [backup] backup 901284 was completed without warnings
2024-06-22 17:30:35 - INFO - [backup] cleaning /backup/tmp.8lKrESTSPY and trap file /backup/_backup_901284_is_running
2024-06-22 17:30:35 - INFO - [backup] 901284 done
Implement a lock file for both backup and restore, the script will wait (and can be instructed with count and time) if another process is running by checking the lock file.
Several small cosmetic changes
Add docs
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
[ ] Includes tests (if functionality changed/added)
If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS.
Changes
Implement a lock file for both backup and restore, the script will wait (and can be instructed with count and time) if another process is running by checking the lock file.
Several small cosmetic changes
Add docs
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you review them:
See the contribution guide for more details.
Reviewer Notes
If API changes are included, additive changes must be approved by at least two OWNERS and backwards incompatible changes must be approved by more than 50% of the OWNERS.