Thank you, it works.
But if I want to delete only certain files or dirs from remote side?
example:
$ tree dirA/
dirA/
|-- dir2
| `-- file3
|-- file1
`-- file2
$ tree dirB/
dirB/
|-- dir2
| `-- file3
|-- file1
|-- file2
`-- protect1
$ rsync -av --dry-run --delete-excluded -f ". filter" dirA
Matt McCutchen-7 wrote:
>
> On Mon, 2009-10-05 at 12:47 -0400, Sanjeev Sharma wrote:
>> Is this in rsync and I just can't find it, or if not, is there a way
>> to fake this OR, third possibility, is anyone working to add it?
> The obvious approach is to use a wrapper script that moves its first