Documentation: Update 'exclude_patterns' in sample config #349

Closed
opened 2020-08-06 09:38:06 +00:00 by hanschen · 1 comment

What I'm trying to do and why

In the current sample borgmatic config, the commented out exclude_patterns option currently looks like this:

# exclude_patterns:
    # - '*.pyc'
    # - ~/*/.cache
    # - /etc/ssl

I'm not sure what - ~/*/.cache is supposed to achieve here. Should it be /home/*/.cache instead?

(The former,~/*/.cache, doesn't seem to match e.g. /home/myuser/.cache on my system. borgmatic 1.5.9.)

#### What I'm trying to do and why In the current [sample borgmatic config](https://torsion.org/borgmatic/docs/reference/configuration/), the commented out `exclude_patterns` option currently looks like this: # exclude_patterns: # - '*.pyc' # - ~/*/.cache # - /etc/ssl I'm not sure what `- ~/*/.cache` is supposed to achieve here. Should it be `/home/*/.cache` instead? (The former,`~/*/.cache`, doesn't seem to match e.g. `/home/myuser/.cache` on my system. borgmatic 1.5.9.)
Owner

Good find! Yes, /home/*/.cache would make much more sense. And thanks for letting me know.

I've just pushed this change, which should be deployed shortly.

Good find! Yes, `/home/*/.cache` would make much more sense. And thanks for letting me know. I've just pushed this change, which should be deployed shortly.
witten added the
bug
label 2020-08-06 17:03:54 +00:00
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#349
No description provided.