Re: Filter file: selected directories only

2009-10-07 Thread rsync
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

Re: gnu --target-dir, how to fake with rsync?

2009-10-07 Thread Martin Scharrer
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