How to catch warnings for files that are not backed up? #733
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#733
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 just checked the health of my backups and noticed that there are files not being backed up - some due to being sqlite databases I didn't know about that changed, some due to permission errors.
However, Borgs return code is 1 for warning. And borgmatic only considers return codes of > 2 errors, because return code 1 is "just a warning". Now this was changed for the
borg check
. But not forborg create
.I would basically like my healthcheck to fail, if some files failed to back up. Otherwise I need to start monitoring borgmatic logs for warnings, because I'd like to know about issues during backups.
Possibly I'm thinking this all wrong, since I couldn't find any other issues about this. But I cannot wrap my head around the fact that files not being backed up is still considered a successful backup.
Thanks for the amazing piece of software ❤️
Thanks for taking the time to file this! However I do think it's a duplicate of #709. The existing "source_directories_must_exist" option will cause borgmatic to fail if a source directory is missing, but it won't do anything if there's a permission error on some other file within a source directory. Anyway, I recommend closing this in favor of #709 and then following along with the issue there (and adding any additional thoughts you may have).
Related: borgmatic does have a SQLite hook integration, so you may be able to use that instead of hitting permissions errors on in-use SQLite files.
Thanks a lot for the quick reply and the hint to #709 - I somehow missed it, probably bad search terms. Sorry.
(also thanks for the SQLite hook note - I usually use it, this was more about general backup healthchecks for all sorts of things)