/usr/share
excluded when it should not be #799
Labels
No Label
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: borgmatic-collective/borgmatic#799
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
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
Can you post you full config (minus secrets) and the output of
borgmatic -v 2
here?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
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.)?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:
x
,/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
I'm not 100% sure but
sh:*/[Ss]hare/
should match/usr/share
(it's on line 11 in your excludes).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
@witten I think this can be closed.
Thanks!
Hi,
I examined the log of excluded files, and indeed, after correcting
sh:*/[Ss]hare/
tore:^(admin|root)/[Ss]hare/
all is fine.
Thank you one more time for pointing this out! :-)
--
Best regards,
Andrzej Telszewski
Awesome, glad to hear it!