-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include file inside excluded path will include all files in excluded path #561
Comments
AFAIK there is nothing special with |
Hi Germar, profile2.snapshots.exclude.2.value=/home/friedhelm/Daten/_fotos/Lightroom/Backups As said, /home/friedhelm/Encfs and /home/friedhelm/Downloads are excluded, but Dropbox (spelled correctly) is always backed up. |
How comes that you've |
Sorry, I showed only an excerpt from the config file. I do not exclude only those 5 directories, but 23. But to eliminate even this possible cause, I reduced the number of exclusions to 2 items, Dropbox and the Downloads folder:
As you can see, the snapshots.exclude.size=2 (/home/friedhelm/Dropbox and /home/friedhelm/Downloads) and the snapshots.include.size=1 (/home/friedhelm). Dropbox is still backed up!!!! (Grrrrr..) |
Hmm, that's strange. What's the output of |
|
Looks okay to me. Sorry, I'm out of ideas. |
Could this happen if there were something like a link to the Dropbox folder from somewhere else in the heirarchy? Though I suppose then it would appear in the snapshot in a different place. |
@colinl As long as you did not activate |
Thank you Germar and Colinl for your ideas and Happy Easter! Nevertheless let me say a big THANK YOU for your software! |
A couple of further ideas. If in the BIT GUI you select the latest
snapshot does Dropbox appear in the folder list under Backup folders? If
not then how do you browse to it in the snapshot? Also have you explicitly
included Dropbox in the Include folders?
|
On LinuxMintUsers I've seen you actually tried to include parts of the Dropbox folder before. Which is totally fine and SHOULD work. But maybe this previous attempts causing your troubles now. So just to double-check, could you please rename your I tried your config above yesterday and it worked as expected. My dummy Dropbox folder was excluded. So I guess this has something to do with your previous snapshots. BTW do you use |
Hi Germar, Step 1: Completely new config file
Result: Dropbox is not backed up, which is correct! Step 2:
Now the complete Dropbox folder with everything in it is backed up!!! This is wrong. Step 3: In total: Thank you for your patience! |
Okay, I was able to reproduce this here. I'll have a look why the whole excluded path is backed up when only a single file inside the excluded path is included. |
Hey! |
I just came across this bug with my setup too. Is there any workaround? Can we add some path (perhaps with wildcards), or add some additional options to rsync? |
Backintime |
Of course, @Codeberg-AsGithubAlternative-buhtz! I have no sense of entitlement that any FOSS software should be rapidly updated. Totally understandable! I was posting here more to see if there was some workaround, similar to #1247. I wasn't sure if it was an issue with rsync options. I'm also using the latest backintime 1.3.2-2, with up-to-date Arch Linux client and server. |
Hello, I also stumbled on this bug today, trying to backup a single folder |
Okay, so this behavior has been confirmed with backintime, but how about testing with |
Sidenote: I found a comment in the code about that issue here. See Not clear if this can help. |
Link to the code: backintime/common/snapshots.py Lines 1797 to 1800 in 88d19d4
|
Hi, Adding a double star to the end of the folder path,
Because EDIT: nevermind. i no longer think this is a good solution. i think documentation and help text is the way to go.
|
i was playing around with this a little more and have some more nuance depending on what inside of your excluded folders you want to include. i also found a workaround to my problem so everything can work in BiT now.
note: the trailing slash of a dir mostly doesn't matter. none at all if a full path from root is given. but patterns may match files too. with trailing slash, only folders will be matched. |
Thank you @insubstudios for the detailed testing and post! I can confirm that number 3 works as suggested. I'll also say that I'm a bit worried about future updates breaking the |
May I suggest to add a help page somewhere in this dialog to support users applying the right exclusion pattern (as described above) and add the "feature request" tag to this issue: PS: @insubstudios THX a lot for your excellent summary of the include/exclude variations! |
Ah yes. Thanks again @insubstudios . I just had a look at
|
I would love to have something like this. ❤️ |
BackInTime 1.1.12 on Linux Mint 17.3
I want to backup my /home/myname directory but want to exclude the Dropbox directory.
Although serveral directories as "Downloads", "Encfs" are correctly excluded as they are marked so, BIT does backup the directory /home/myname/Dropbox which is also in the list of exclusions.
See screenshot below!
What makes this directory different that it cannot be excluded?
Thanks!
Friedhelm
The text was updated successfully, but these errors were encountered: