Rsync --non-existent-dir-only feature :) ..

Dave Dykstra dwd at drdykstra.us
Tue Dec 3 15:26:02 EST 2002


Does the --ignore-existing option do what you want?  It will probably recurse
into the existing directories, but ignore all regular files that already exist.

- Dave Dykstra

On Tue, Dec 03, 2002 at 01:01:03AM +0100, Robert Raszuk wrote:
> 
> All,
> 
> I can't find a way to achive something probably quite wired :). Let's
> say I have two unix folders (on different machines):
> 
> /dst-top-1n/
>        |
>        dir-a
>            | files 
>        |
>        dir-b
>            | files 
>        |
>        dir-c
>            | files 
> 
> /src-top-2/
>        |
>        dir-a
>            | files 
>        |
>        dir-b
>            | files 
>        |
>        dir-x
>            | files 
> 
> 
> Always src is top-2 & dst is top-1. All I need to do is to be able to
> send dir-x files to top-1 without even touching dir-a & dir-b simply
> because the overall tool does not have permissions to write access them. 
> 
> To make it more interesting there are 100s of those top-1 directories
> (each on different client machine), the rsync is fully automated, and
> the context of each of the top-1 dir differs. Sync is triggered by src.
> 
> What I am really looking for is something like in the subject one liner
> knob which would compare dir-x directories on src/dst and perform no
> action under matching already dirs on both machines.
> 
> Huge Thx - Rsync Rocks !!!!
> R.
> -- 
> To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.tuxedo.org/~esr/faqs/smart-questions.html



More information about the rsync mailing list