Hi, Wayne,
Thanks for your suggestion. Your solution is good but not fit my case. If there are a lot of files or folders under l1, rsync -avR source/./l1/l2/l3/abc.txt dest::Worksheets/ will check all the files and folders under l1. Actually, I only care about abc.txt. Thanks, Steven. From: 4way...@gmail.com [mailto:4way...@gmail.com] On Behalf Of Wayne Davison Sent: Tuesday, November 09, 2010 4:48 PM To: Steven Xu Cc: rsync@lists.samba.org Subject: Re: Changes made to main.c on implementing real time Rsync On Tue, Nov 9, 2010 at 11:04 AM, Steven Xu <steven...@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..
-- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html