Changes made to main.c on implementing real time Rsync

Wayne Davison wayned at samba.org
Tue Nov 9 14:48:29 MST 2010


On Tue, Nov 9, 2010 at 11:04 AM, Steven Xu <steven.xu at lba.ca> wrote:

> Example   "rsync  -av  source/l1/l2/l3/abc.txt dest::Worksheets/l1/l2/l3/"
>

Do this instead:

rsync -avR source/./l1/l2/l3/abc.txt dest::Worksheets/

The use -f -R (--relative) along with the /./ path element to signal how
much of the source path goes into the copy will make rsync create all the
needed dirs on the destination.

..wayne..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20101109/34fc64cf/attachment.html>


More information about the rsync mailing list