/usr/share excluded when it should not be #799

Closed
opened 2023-12-11 10:54:42 +00:00 by atelszewski ยท 10 comments

What I'm trying to do and why

Hi,

I'm making a full system backup, starting the backup at /.

I noticed that /usr/share is excluded from the backup.
I have some excludes configured, but /usr/share is not on the list.

Steps to reproduce

No response

Actual behavior

/usr/share is excluded, but I haven't configured it to be excluded.

Expected behavior

/usr/share is included in the backup if not explicitely excluded.

Other notes / implementation ideas

No response

borgmatic version

1.8.5

borgmatic installation method

No response

Borg version

1.2.7

Python version

3.9.18

Database version (if applicable)

No response

Operating system and version

NAME=Slackware VERSION="15.0" ID=slackware VERSION_ID=15.0 PRETTY_NAME="Slackware 15.0 x86_64" ANSI_COLOR="0;34" CPE_NAME="cpe:/o:slackware:slackware_linux:15.0" HOME_URL="http://slackware.com/" SUPPORT_URL="http://www.linuxquestions.org/questions/slackware-14/" BUG_REPORT_URL="http://www.linuxquestions.org/questions/slackware-14/" VERSION_CODENAME=stable

### What I'm trying to do and why Hi, I'm making a full system backup, starting the backup at `/`. I noticed that `/usr/share` is excluded from the backup. I have some _excludes_ configured, but `/usr/share` is not on the list. ### Steps to reproduce _No response_ ### Actual behavior `/usr/share` is excluded, but I haven't configured it to be excluded. ### Expected behavior `/usr/share` is included in the backup if not _explicitely_ excluded. ### Other notes / implementation ideas _No response_ ### borgmatic version 1.8.5 ### borgmatic installation method _No response_ ### Borg version 1.2.7 ### Python version 3.9.18 ### Database version (if applicable) _No response_ ### Operating system and version NAME=Slackware VERSION="15.0" ID=slackware VERSION_ID=15.0 PRETTY_NAME="Slackware 15.0 x86_64" ANSI_COLOR="0;34" CPE_NAME="cpe:/o:slackware:slackware_linux:15.0" HOME_URL="http://slackware.com/" SUPPORT_URL="http://www.linuxquestions.org/questions/slackware-14/" BUG_REPORT_URL="http://www.linuxquestions.org/questions/slackware-14/" VERSION_CODENAME=stable
Contributor

Can you post you full config (minus secrets) and the output of borgmatic -v 2 here?

Can you post you full config (minus secrets) and the output of `borgmatic -v 2` here?
witten added the
question / support
label 2023-12-11 18:13:26 +00:00
Author

Hi,

I normally create backup with --list, so that the listing of files is logged as well.
Would it suit you if I posted the log without the listing?

--
Best regards,
Andrzej Telszewski

Hi, I normally create backup with `--list`, so that the listing of files is logged as well. Would it suit you if I posted the log without the listing? -- Best regards, Andrzej Telszewski
Owner

The output of --list would be helpful in order to see which files Borg is actually including/excluding. Would it be possible to redact the --list output so we can at least see the start of each path (/usr/share/, etc.)?

The output of `--list` would be helpful in order to see which files Borg is actually including/excluding. Would it be possible to redact the `--list` output so we can at least see the start of each path (`/usr/share/`, etc.)?
Author

Hi,

attached please find:

  • Configuration file.
    It has only the repo path changed to not be a real one.

  • Exclude file.
    It has only one line removed, that was excluding files in /home/atelszewski/....

  • dobackup.
    This is the script to start the backup.

  • The log file:

    • it only contains files that were excluded, i.e. x,
    • it has all lines refering to /home/atelszewski removed.

Please let me know if this log file contents is sufficient, if not, I'll provide more details.
I'd like to reiterate that, that only the files under /usr/share are incorrectly excluded - other excludes are correct.

Thank you! :-)

--
Best regards,
Andrzej Telszewski

Hi, attached please find: - Configuration file. It has only the repo path changed to not be a real one. - Exclude file. It has only one line removed, that was excluding files in `/home/atelszewski/...`. - `dobackup`. This is the script to start the backup. - The log file: - it only contains files that were excluded, i.e. `x`, - it has all lines refering to `/home/atelszewski` removed. Please let me know if this log file contents is sufficient, if not, I'll provide more details. I'd like to reiterate that, that only the files under `/usr/share` are incorrectly excluded - other excludes are correct. Thank you! :-) -- Best regards, Andrzej Telszewski
Contributor

I'm not 100% sure but sh:*/[Ss]hare/ should match /usr/share (it's on line 11 in your excludes).

I'm not 100% sure but `sh:*/[Ss]hare/` should match `/usr/share` (it's on line 11 in your excludes).
Author

Hi,

good catch! :-)
I'll look into it - so far that's the only possibility I see.

EDIT:

Actually, that makes perfect sense.
I wanted to exclude /root/share and /admin/share, but the wildcard of course matches /usr.

I'll run some test soon to prove what's obvious. :-)

Thanks!

--
Best regards,
Andrzej Telszewski

Hi, good catch! :-) I'll look into it - so far that's the only possibility I see. EDIT: Actually, that makes perfect sense. I wanted to exclude `/root/share` and `/admin/share`, but the wildcard of course matches `/usr`. I'll run some test soon to prove what's obvious. :-) Thanks! -- Best regards, Andrzej Telszewski
Contributor

@witten I think this can be closed.

@witten I think this can be closed.
Owner

Thanks!

Thanks!
Author

Hi,

I examined the log of excluded files, and indeed, after correcting sh:*/[Ss]hare/ to re:^(admin|root)/[Ss]hare/
all is fine.

Thank you one more time for pointing this out! :-)

--
Best regards,
Andrzej Telszewski

Hi, I examined the log of excluded files, and indeed, after correcting `sh:*/[Ss]hare/` to `re:^(admin|root)/[Ss]hare/` all is fine. Thank you one more time for pointing this out! :-) -- Best regards, Andrzej Telszewski
Owner

Awesome, glad to hear it!

Awesome, glad to hear it!
Sign in to join this conversation.
No Milestone
No Assignees
3 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#799
No description provided.