Change heuristic for "--successful" to really recognize checkpoint archives. #433
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#433
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'm trying to do and why
I would like to get a summary by mail about the last successful backup and in theory BorgMatic supports that use case with the following command already:
The problem is that my archive name is the following:
Recognize the
Z
at the end of the name to better describe the timestamp. I don't think that format is that uncommon, though it's not documented to be recognized. Instead of trying to detect something like a timestamp or alike at the end of archives, I suggest to simply stick to what Borg documents for checkpoints already:Searching for something like
.checkpoint
seems safer to me: It's the documented phrase Borg uses for checkpoints and is less likely to be used in archive names than timestamps like in my UTC-format.Thanks for considering!
Environment
borgmatic version: 1.5.15
borgmatic installation method: PIP, system wide
Borg version: 1.1.16
Python version: 3.8.10
operating system and version: Ubuntu 20.04
By coincidence I got a checkpoint archive in the logs:
Though, checking for the suffix
.checkpoint
only is not sufficient, it might contain some index as well:https://borgbackup.readthedocs.io/en/stable/usage/create.html#description
I apologize for the lengthy delay in responding to this. The good news:
--successful
is deprecated and newer versions of Borg only show non-checkpoint archives by default!