Borg files in `~/.local/share/` occur a “dir_open: [Errno 13] Permission denied” error
0
votes
0
answers
25
views
# General overview
With BorgBackup, I do a backup of my whole $HOME. However, some files (all located on
~/.local/share/
) occur a rights error. Probably cause it’s ephemeral files belonging to root, I think.
Here is an example of these files:
/home/fauve/.local/share/tracker/data/tracker-store.ontology.journal: open: [Errno 13] Permission denied: 'tracker-store.ontology.journal'
E /home/fauve/.local/share/tracker/data/tracker-store.ontology.journal
/home/fauve/.local/share/tracker/data/tracker-store.journal: open: [Errno 13] Permission denied: 'tracker-store.journal'
E /home/fauve/.local/share/tracker/data/tracker-store.journal
/home/fauve/.local/share/tracker/data/.meta.isrunning: open: [Errno 13] Permission denied: '.meta.isrunning'
E /home/fauve/.local/share/tracker/data/.meta.isrunning
/home/fauve/.local/share/keyrings: dir_open: [Errno 13] Permission denied: 'keyrings'
E /home/fauve/.local/share/keyrings
/home/fauve/.local/share/gnome-shell: dir_open: [Errno 13] Permission denied: 'gnome-shell'
E /home/fauve/.local/share/gnome-shell
/home/fauve/.local/share/evolution: dir_open: [Errno 13] Permission denied: 'evolution'
E /home/fauve/.local/share/evolution
/home/fauve/.local/share/sounds: dir_open: [Errno 13] Permission denied: 'sounds'
# The problem
All the other files are fine saved. But these files occur a shell error.
So, it’s a bit annoying cause I always get a “terminating with warning status, rc 1” at the end of backup process. As I use Borg inside a script, if the script get any error, it don’t continue.
# What I did
## Exclude them explicitly
I first try to explicitly exclude them with Borg’s --exclude
’s option. But it’s not really useful, cause it’s not always the same files. It depend from several circumstances as I see. So I can’t really match them all.
## Exclude the whole directory ~/.local/share/
As all the annoying files comme from ~/.local/share/
, I thank to fully ignore it. But after [sevral](https://unix.stackexchange.com/questions/797136/local-share-is-set-for-what-and-can-i-ignore-it-at-backups/797194#797194) asks, it seems not really possible.
# The question
So is it possible with Borg’s options to just ignore all files|directories according to this two conditions:
1. Located inside ~/.local/share
(or child) ;
2. The current user have no right to read them.
Asked by fauve
(1529 rep)
Jun 20, 2025, 01:33 PM