Changes made to main.c on implementing real time Rsync
steven.xu at lba.ca
Wed Nov 10 07:37:55 MST 2010
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.
From: 4wayned at gmail.com [mailto:4wayned at gmail.com] On Behalf Of Wayne Davison
Sent: Tuesday, November 09, 2010 4:48 PM
To: Steven Xu
Cc: rsync at 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.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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rsync