Borgmatic evaluates exclude patterns wrong #149

Closed
opened 2019-03-11 21:13:10 +00:00 by skorokithakis · 5 comments

I have an exclude_patterns pattern of */dirname/*. Borgmatic evaluates it to misc/dirname/log.log because the rest of the directories under there require root access, so it can't read them, but that causes Borg to try to archive them and fail (because they require root access), and the entire backup fails.

Why is Borgmatic trying to evaluate my patterns? Why not just pass them to Borg as I entered them?

I have an `exclude_patterns` pattern of `*/dirname/*`. Borgmatic evaluates it to `misc/dirname/log.log` because the rest of the directories under there require root access, so it can't read them, but that causes Borg to try to archive them and fail (because they require root access), and the entire backup fails. Why is Borgmatic trying to evaluate my patterns? Why not just pass them to Borg as I entered them?
Owner

What version of borgmatic are you using? You can tell with borgmatic --version or pip3 show borgmatic. Current versions of borgmatic do not monkey with the exclude patterns except to expand tildes (which Borg doesn't do).

Also, can you include the following on this ticket to aide in debugging? The contents of your borgmatic config file (secrets redacted), and the output of your borgmatic command invocation with --verbosity 2?

Thanks!

What version of borgmatic are you using? You can tell with `borgmatic --version` or `pip3 show borgmatic`. Current versions of borgmatic do not monkey with the exclude patterns except to expand tildes (which Borg doesn't do). Also, can you include the following on this ticket to aide in debugging? The contents of your borgmatic config file (secrets redacted), and the output of your borgmatic command invocation with `--verbosity 2`? Thanks!
Author

Sorry, you are correct. I thought I upgraded Borgmatic yesterday but I forgot the --user option along with -U and ended up running 1.2.14. 1.3.0 works, sorry for the bother.

Sorry, you are correct. I thought I upgraded Borgmatic yesterday but I forgot the `--user` option along with `-U` and ended up running 1.2.14. 1.3.0 works, sorry for the bother.
Owner

No worries. Glad that's all it was!

No worries. Glad that's all it was!
witten added the
question / support
label 2019-03-11 21:43:15 +00:00
Author

Thank you, and thanks for Borgmatic! By the way, can I plug an OSS project I created to make sure my backups ran? It's called Caduceus and it lets you curl a URL as an after_backup action. If the URL isn't loaded once every X days, it emails you that your backups aren't running. Maybe you'll find it useful.

Thank you, and thanks for Borgmatic! By the way, can I plug an OSS project I created to make sure my backups ran? It's called [Caduceus](https://gitlab.com/stavros/caduceus) and it lets you `curl` a URL as an `after_backup` action. If the URL isn't loaded once every X days, it emails you that your backups aren't running. Maybe you'll find it useful.
Owner

Cool! Looks handy.. I may have to try that out for my own backups!

Cool! Looks handy.. I may have to try that out for my own backups!
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: borgmatic-collective/borgmatic#149
No description provided.