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>    | -&gt; baz                  | -&gt; baz<br>    | -&gt; xyz                  | -&gt; xyz<br>    | -&gt; abc                  | -&gt; abc<br>
                                 | -&gt; old-baz<br><br>I am below comand using --delete-excluded  and as a result rsync deletes exluded directories &quot;baz&quot; and &quot;abc&quot; and also deletes &quot;old-baz&quot;. I want to preserve the &quot;old-baz&quot; and &quot;baz&quot; directories on destination side and want &quot;abc&quot; 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>