checkmk
checkmk copied to clipboard
timemachine: removesuffix .backup
timemachine: remove .backup suffix from tmutil latestbackup output
General information
The output of tmutil latestbackup on my macOS looks like this:
/Volumes/.timemachine/CA30DC01-325C-43C2-8187-E404168D2F8B/2024-08-17-001115.backup/2024-08-17-001115.backup
Because of the .backup suffix the check fails with a python error converting the timestamp extracted from the filename.
Bug reports
- macOS 14.6.1
Proposed changes
remove .backup suffix if exists
All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.
I have read the CLA Document and I hereby sign the CLA or my organization already has a signed CLA.