-
Notifications
You must be signed in to change notification settings - Fork 282
Having trouble finding documentation for "Include / Exclude Patterns". Does the order matter? What's the difference between /dirname/
, /dirname/*
, /dirname/**
, /dirname/***
...?
#799
Comments
Filter order is important. Filters are applied from top-to-bottom on each file and folder. For each file, the first matching filter is applied and the rest are ignored. It is explained in the Rsync user manual: |
Ohhh, thanks, that explains why I couldn't find anything: I was searching for info on timeshift for the asterisk stuff etc, when I should've been looking for info on rsync So... I still have a couple questions, and I guess this isn't really the right place to ask this, but even if you can't answer, maybe you could at least tell me where I should ask... Right now, I have in my
First question: My intention with: Did I get that right? You said "the first matching filter is applied and the rest are ignored" Whereas if I did it the other was around, ( Second question: I have the exclude rules there My intention is to not include any of the contents of those dirs in a snapshot, So I used
Did I get that right? |
That's correct. The top-down approach may feel weird but it is the most flexible way of defining the exclude/include filters. |
Is there some posibility to override timeshift default exclude list? Default exclude rules hardcoded in timeshift, and it prepend result "exclude.list" for rsync. Rsync docs say "The exclude patterns actually short-circuit the directory traversal stage ... rsync did not descend through that excluded section of the hierarchy". So i can't backup "/mnt/special/folder/" because of hardcoded exclude rule "/mnt/*". |
sorry, it will be solved by #796 |
Hi, I just started using timeshift,
and I'm having trouble finding documentation for "Include / Exclude Patterns".
Like, the gui tells you "Drag-drop to re-order", but it doesn't explain:
Does the order matter?
If so, how?
And I've seen patterns like:
/dirname/
/dirname/*
/dirname/**
and even
/dirname/***
but I don't understand what the differences are?
I would guess there should be a way to choose between backing up a dir
/dirname/
normally,and backing it up so its existence will be restored,
but its contents ignored?
(eg, what I would think you'd want if it was the automount point for an external harddrive you're not including in the back-up?)
... but I'm still confused as to which usage would be
/dirname/
and which/dirname/*
?And I'm completely stumped on the meaning of
**
and***
.Are those some kind of shorthand for like
{*,.*}
or... something?(And obviously, it would be nice if the gui could be tweaked to tell you this info, or at least where to find it.)
(
EDIT: also, if the order is important, then I'm also getting the bug where it keeps resetting it, and I have to manually edit
/etc/timeshift.json
, as mentioned in #626I'm pretty sure I'm experiencing #789 too, but since nobody has responded to that,
I'm not sure if that's actually a bug, or just us not understanding how it's supposed to work cuz there's no documentation obvious to us
)
The text was updated successfully, but these errors were encountered: