Borg server - documentation of checks only #364
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#364
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'm building a borg/borgmatic little cluster, I have 3 nodes on which I do backups and they are sent to a fourth server only used as a remote repository.
I also wish to use borgmatic on the repository server to manage the whole. I want to use it for manual actions, but I would also like to use it for the consistency checks feature.
I could configure checks on the nodes I want to backup, but then the whole stuff would use more cpu and bandwith than checks ran on the repository server only.
borgmatic configuration on the repository node :
borgmatic configuration on the backup nodes :
Actual behavior
Trying to launch borgmatic with
sources_directories: []
on the repository server show this :Other notes / implementation ideas
I'm not sure if what i'm trying to do is currently possible or not. If it is not, make it a feature request : To be able to run borgmatic for checks only.
Environment
borg and borgmatic latest version, Python 3.5.3, Debian 10 64 bits
Interesting use case.. Thanks for writing it up! I assume you've seen how to run independent borgmatic actions? E.g.:
borgmatic check
. Is the issue that you'd like a way to put this check-only behavior in borgmatic's configuration file, rather than specifying it on the command-line? Or would the command-lineborgmatic check
work for you?Hello @witten
It really depends, the documentation says
What do that means ? If I compare that to the consistency checks :
For a "borg server", I would need to be able to start all the availables checks, not only one of them.
Or maybe I did not understood and
borgmatic check
is fetching the wanted checks in the config.yml ?Yes!
borgmatic check
is running through all the specified checks from the configuration file. I can update the command-help to make this much more clear.Well that's wonderful. More details of the --check option would be good I concur.
Just need to edit my cron now.
Thanks again for your time @witten
Sure thing! I'll re-open this ticket to cover improving the documentation of the
check
action!Borg server - checks onlyto Borg server - documentation of checks onlyHello back @witten !
I'm noticing that if you use
borgmatic check
the hooks are not used, at least for theses ones (i did not test on_error):that before and after_backup are not executed, that seems rational, but what about before/after_everything ?
Yeah,
before/after_everything
currently only trigger if there's acreate
action. I think it was initially a variant ofbefore_backup
that runs before all actions.Have you seen the
before/after_check
hooks? If that doesn't work for your use case, could you tell me a little more about the problem there?Damn, I was sure I had read correctly the reference documentation... it's what I need, sorry for bothering again.
No worries! I'm glad to hear that does it for you. If you can think of any improvements I can make to the docs, do let me know!
I believe this is documented now! If you find that it's not, please feel free to open another ticket or follow-up here. Thanks for your patience.
https://torsion.org/borgmatic/docs/how-to/deal-with-very-large-backups/