Rsync a directory via a linked name.

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


-----BEGIN PGP SIGNED MESSAGE-----
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 
>> ftp.cn.debian.org::debian/dists/wheezy/main/installer-amd64/current/
>
>> 
> 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 \ 
> ftp.cn.debian.org::debian/dists/wheezy/main/installer-amd64/current/
>
>  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 FutureQuest.net  (work)
	Orlando, Florida		kmk at sanitarium.net (personal)
	Web page:			http://www.sanitarium.net/
	PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlUwT1cACgkQVKC1jlbQAQc46QCgocsn498C0Q3w7t2glHO7/12X
+r0AoNozy4/ercYd+3gqQ1eEMd9BdWIC
=WGo0
-----END PGP SIGNATURE-----


More information about the rsync mailing list