Rsync a directory via a linked name.

Kevin Korb kmk at
Thu Apr 16 18:09:59 MDT 2015

Hash: SHA1

Always have either --times or --archives.  Otherwise rsync will have
no idea what needs updating when you run it again.

On 04/16/2015 08:07 PM, Hongyi Zhao wrote:
> On Thu, 16 Apr 2015 11:21:03 -0400, Kevin Korb wrote:
>> Just go 1 deeper for your source: rsync -l 
> Yes, I've tried this before.  But I also use the `--delete
> --delete- excluded' with the above options.  And finally I found
> that the  current will not be retrieved, in fact it will be deleted
> at the end.
> Then I noted the following args of rsync:
> -L, --copy-links            transform symlink into referent
> file/dir -K, --keep-dirlinks         treat symlinked dir on
> receiver as dir
> So I finally use the command like this and it does the trick:
> rsync -rlKLPv --delete --delete-excluded \ 
>  But, even though, I cann't figure out whether the method used by
> me is the most appropriate method or not for this case.
> Regards

- -- 
	Kevin Korb			Phone:    (407) 252-6853
	Systems Administrator		Internet:
	FutureQuest, Inc.		Kevin at  (work)
	Orlando, Florida		kmk at (personal)
	Web page:
	PGP public key available on web site.
Version: GnuPG v2


More information about the rsync mailing list