Page 1 of 1

snapshot excludes question

Posted: Sun Feb 19, 2023 7:19 pm
by twi
I could not find an answer for this unbearably simple question and so here it is:

I want to exclude a specific folder located on the desktop and I could not find an example that I could follow.

I know in the excludes file there is this example entry:

home/*/Desktop/*

which I am guessing is used to exclude the Desktop folder but I don't know what comes next.

Would it be, perhaps: home/*/Desktop/*/Folder/*

or would it be: home/*/Desktop/Folder/*

to exclude the folder I want to exclude? Is one of those the correct syntax? Or is it something else?
If it is correct, would anyone care to translate that so that I understand why?

Re: snapshot excludes question

Posted: Sun Feb 19, 2023 7:32 pm
by CharlesV
The * on the end is a wildcard and means everything.

so..
home/*/Desktop/Folder/*

Means: everything in the folder named Folder which is inside the folder named Desktop

in the case above, the * before /Desktop means all users /Desktop/Folder
if you have multiple user profiles, then NONE of them would be backed up.
(and remember linux is case sensitive .)

if your wanting to exclude all files in that folder only in YOUR home folders, you should make sure to spell that out.
home/your_profile_name/Desktop/Folder/*

Re: snapshot excludes question

Posted: Tue Feb 21, 2023 1:00 pm
by twi
That is very helpful, thankyou! :-)

The thing that confused me and that led me to first suggest using this:

home/*/Desktop/*/Folder/*

instead of what you sugggested, namely this:

home/*/Desktop/Folder/*

was entries like this in the excludes file:

home/*/.cache/mozilla/firefox/*/cache2/*

but if I understand you correctly, that would mean excluding everything inside of cache2, in the specified location that is specified by the path?

Re: snapshot excludes question

Posted: Tue Feb 21, 2023 1:31 pm
by Huckleberry Finn
twi wrote: Tue Feb 21, 2023 1:00 pm...
home/*/.cache/mozilla/firefox/*/cache2/*

but if I understand you correctly, that would mean excluding everything inside of cache2, in the specified location that is specified by the path?
Yep.

For all users ... for firefox ...

Re: snapshot excludes question  [Solved]

Posted: Thu Feb 23, 2023 5:55 pm
by twi
Thankyou for that! :-)