Hi,<br><br>Basically, I want to preserve some of directories on destination side conditionally and hence, I choose to use --filter option mentioned in rsync man pages. I noticed that --filter option works as expected when I don't have --relative option used but in below case it doesn't work.<br>
<br>rsync -avz --relative --delete --filter='H /mydir2' --exclude='- /preserve' mydir1/. destHost:/tmp/mydir<br><br>I want to sync "/tmp/mydir/mydir1", delete "mydir2" and protect and hide "preserve" directory on destination host.<br>
<br>I noticed that rsync doesn't deletes the "mydir2" on destination host but if I remove --relative then it does. Could anyone tell me is there any dependencies between Hide and Protect flag with --relative option? How to make rsync to delete directories with H flag set and --relative option specified?<br>
<br>Thanks.<br><br>