Why is borgmatic trying to backup directories that aren't listed in config file? #627

Closed
opened 2023-01-03 23:34:31 +00:00 by anaxonda · 1 comment

What I'm trying to do and why

Run a normal backup with only defined directories.

Steps to reproduce (if a bug)

Run borgmatic with config file.

Actual behavior (if a bug)

Tries to backup directories that are not defined in borgmatic config file.

Expected behavior (if a bug)

Only backs up directories that are listed in config file.

Other notes / implementation ideas

I have two directories defined in my config file:

location:
    # List of source directories to backup (required). Globs and
    # tildes are expanded.
    source_directories:
        - /home
        - /etc

However it seems like borgmatic (borg) tries to backup all directories, including /usr and /run, for example:

/run/systemd/journal/streams/8:19642: open: [Errno 13] Permission denied: '8:19642'
/run/systemd/journal/streams/8:24622: open: [Errno 13] Permission denied: '8:24622'
/run/systemd/journal/streams/8:17878: open: [Errno 13] Permission denied: '8:17878'
/run/systemd/journal/streams/8:19941: open: [Errno 13] Permission denied: '8:19941'
/run/systemd/journal/streams/8:24637: open: [Errno 13] Permission denied: '8:24637'
/run/systemd/journal/streams/8:19025: open: [Errno 13] Permission denied: '8:19025'
/run/systemd/journal/streams/8:12951: open: [Errno 13] Permission denied: '8:12951'
/run/systemd/journal/streams/8:14022: open: [Errno 13] Permission denied: '8:14022'
/run/systemd/journal/streams/8:24662: open: [Errno 13] Permission denied: '8:24662'
/run/systemd/journal/streams/8:19973: open: [Errno 13] Permission denied: '8:19973'
/run/systemd/journal/streams/8:12974: open: [Errno 13] Permission denied: '8:12974'
/run/systemd/journal/streams/8:19100: open: [Errno 13] Permission denied: '8:19100'
/run/systemd/journal/streams/8:24720: open: [Errno 13] Permission denied: '8:24720'
/run/systemd/journal/streams/8:13117: open: [Errno 13] Permission denied: '8:

Why might this be?

Environment

borgmatic version: [1.7.5]

borgmatic installation method: [Arch AUR]

Borg version: [1.2.2]

Python version: [3.10.9]

Database version (if applicable): [psql (PostgreSQL) 14.6]

operating system and version: [Arch 6.0.12-arch1-1]

#### What I'm trying to do and why Run a normal backup with only defined directories. #### Steps to reproduce (if a bug) Run borgmatic with config file. #### Actual behavior (if a bug) Tries to backup directories that are not defined in borgmatic config file. #### Expected behavior (if a bug) Only backs up directories that are listed in config file. #### Other notes / implementation ideas I have two directories defined in my config file: ``` location: # List of source directories to backup (required). Globs and # tildes are expanded. source_directories: - /home - /etc ``` However it seems like borgmatic (borg) tries to backup all directories, including /usr and /run, for example: ``` /run/systemd/journal/streams/8:19642: open: [Errno 13] Permission denied: '8:19642' /run/systemd/journal/streams/8:24622: open: [Errno 13] Permission denied: '8:24622' /run/systemd/journal/streams/8:17878: open: [Errno 13] Permission denied: '8:17878' /run/systemd/journal/streams/8:19941: open: [Errno 13] Permission denied: '8:19941' /run/systemd/journal/streams/8:24637: open: [Errno 13] Permission denied: '8:24637' /run/systemd/journal/streams/8:19025: open: [Errno 13] Permission denied: '8:19025' /run/systemd/journal/streams/8:12951: open: [Errno 13] Permission denied: '8:12951' /run/systemd/journal/streams/8:14022: open: [Errno 13] Permission denied: '8:14022' /run/systemd/journal/streams/8:24662: open: [Errno 13] Permission denied: '8:24662' /run/systemd/journal/streams/8:19973: open: [Errno 13] Permission denied: '8:19973' /run/systemd/journal/streams/8:12974: open: [Errno 13] Permission denied: '8:12974' /run/systemd/journal/streams/8:19100: open: [Errno 13] Permission denied: '8:19100' /run/systemd/journal/streams/8:24720: open: [Errno 13] Permission denied: '8:24720' /run/systemd/journal/streams/8:13117: open: [Errno 13] Permission denied: '8: ``` Why might this be? #### Environment **borgmatic version:** [1.7.5] **borgmatic installation method:** [Arch AUR] **Borg version:** [1.2.2] **Python version:** [3.10.9] **Database version (if applicable):** [psql (PostgreSQL) 14.6] **operating system and version:** [Arch 6.0.12-arch1-1]
Author

Please ignore, I had a set both "source directories" and pattern include/exclude section.

Please ignore, I had a set both "source directories" and pattern include/exclude section.
Sign in to join this conversation.
No Milestone
No Assignees
1 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#627
No description provided.