Advanced rsync includes and excludes

2019-08-07 Thread Hans-Peter Jansen via rsync
Hi, I'm a happy camper @ rsync (and rsnapshot) since years. Thanks for this major piece of software. In an attempt to reorganize my rsnapshot backups, I stumbled across an issue, that I'm trying to seeking a more sophisticated solution here. Given, I have a deeply branched tree, where I would

Re: Advanced rsync includes and excludes

2019-08-07 Thread Kevin Korb via rsync
I believe you can shorten that to: + /some/very/ + /some/very/deep/ + /some/very/deep/path/ + /some/very/deep/path/to/ + /some/very/deep/path/to/save/*** - /some/* You could also exclude /some and then use /some/very/deep/path/to/save as an additional source. I don't know if rsnapshot can

Re: Advanced rsync includes and excludes

2019-08-07 Thread Hans-Peter Jansen via rsync
Am Mittwoch, 7. August 2019, 17:36:01 CEST schrieb Kevin Korb via rsync: > I believe you can shorten that to: > > + /some/very/ > + /some/very/deep/ > + /some/very/deep/path/ > + /some/very/deep/path/to/ > + /some/very/deep/path/to/save/*** > - /some/* Unfortunately, this doesn't work, since it

difference in behaviour of --filter --delete: cmdline vs. file

2019-08-07 Thread Madhu via rsync
Hello, I want to avoid transferring a file which is present both on the source tree and on the target tree when calling rsync with -a --delete. mkdir -pv src/ dst/ echo file1 > src/file echo file2 > dst/file rsync -navi --delete --exclude file src/ dst/ works as expected. The file is not

Re: difference in behaviour of --filter --delete: cmdline vs. file

2019-08-07 Thread Kevin Korb via rsync
It is a little confusing but in order to have an exclude dir merge filter do both things (prevent transfer and prevent deletion) then it needs to be on both ends of the transfer. The file on each end only has partial effect on what rsync does. Think of it like a file you (as a regular user) can