Hi,<br><br>I have a situation where I want to delete some of my excluded patterns but still want to preserve some other. For example consider below source and destination directory hierarchy.<br><br> Source Dest<br>
---------- ---------<br>/foo/bar/ /foo/bar/<br> | -> baz | -> baz<br> | -> xyz | -> xyz<br> | -> abc | -> abc<br>
| -> old-baz<br><br>I am below comand using --delete-excluded and as a result rsync deletes exluded directories "baz" and "abc" and also deletes "old-baz". I want to preserve the "old-baz" and "baz" directories on destination side and want "abc" to gets deleted. Could you tell me how to tell rsync to do this?<br>
<br>rsync -avz /foo/bar/ --delete-excluded --exclude=/baz --exclude=/abc desthost:/foo/bar/<br><br>Is there any option like --preserve-excluded available?<br><br>Thanks, <br>Jignesh <br>