jenkinsci / kubernetes-operator

Kubernetes native Jenkins Operator
https://jenkinsci.github.io/kubernetes-operator
Other
597 stars 233 forks source link

feat(backup): logs everything to stdout/err, implement lock file for both backup/restore #1023

Closed brokenpip3 closed 3 months ago

brokenpip3 commented 3 months ago

Changes

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

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.