Describe the bug
If you have a filter that includes a folder name that begins with a bracket (i.e. [ or ] symbol) and you have that filter so to - aka "exclude", the folder in question will still get included in snapshots.
To Reproduce
Steps to reproduce the behavior:
- Make sure the parent directory is included in timeshift via the
Users and/or Filters tab
- Create a new folder inside of the directory mentioned in step1 named something like
[test (]test will work too)
- Inside of the folder you created in step2, put and/or create some file in it (e.g. a text file named "testing" that simply says "hello world")
- Add the folder you created in step2 to timeshift's
Filters tab set to - aka exclude
- Create a timeshift snapshot
- Browse the contents of the resulting timeshift snapshot
- Observe how the folder you created in step2 was in fact included
BONUS: Return to step2 but, this time, replace the bracket symbol with a dollar sign (i.e. $ symbol) and do the subsequent steps again - you will notice that timeshift will successfully exclude the folder.
Expected behavior
Folders that have a bracket as the first character of their name should be properly excluded in snapshots if the user has set a corresponding filter to exclude said folder.
Log
(includes more directories than necessary)
System:
- Linux Mint 21.3
- Cinnamon
- timeshift v24.01.1
Other comments
I've not tested brackets for file names (rather than folder names), nor have I tested brackets that are present but are not the first character. It's possible other symbols could also cause the same result, but I at least know that having the dollar sign (i.e. $ symbol) as the first character of a folder name still works perfectly fine for exclusion filters in timeshift.
Describe the bug
If you have a filter that includes a folder name that begins with a bracket (i.e.
[or]symbol) and you have that filter so to-aka "exclude", the folder in question will still get included in snapshots.To Reproduce
Steps to reproduce the behavior:
Usersand/orFilterstab[test(]testwill work too)Filterstab set to-aka excludeBONUS: Return to step2 but, this time, replace the bracket symbol with a dollar sign (i.e. $ symbol) and do the subsequent steps again - you will notice that timeshift will successfully exclude the folder.
Expected behavior
Folders that have a bracket as the first character of their name should be properly excluded in snapshots if the user has set a corresponding filter to exclude said folder.
Log
(includes more directories than necessary)
System:
Other comments
I've not tested brackets for file names (rather than folder names), nor have I tested brackets that are present but are not the first character. It's possible other symbols could also cause the same result, but I at least know that having the dollar sign (i.e. $ symbol) as the first character of a folder name still works perfectly fine for exclusion filters in timeshift.