rsync equivalent of 'cp -al' ?
kmk at sanitarium.net
Tue Jun 18 10:35:58 MDT 2013
-----BEGIN PGP SIGNED MESSAGE-----
If you make a link to a link you make a link to all of its links. The
effect is the same.
On 06/18/13 12:27, Chris Dennis wrote:
> On 18/06/13 16:53, Kevin Korb wrote:
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>> The -H there isn't needed and could only cause increased memory
> I realise that --link-dest implies hard links between directories,
> but I use -H as well to maintain any hard links within the source
> directory. Does that make sense?
>> On 06/18/13 11:49, Chris Dennis wrote:
>>> On 18/06/13 15:02, Kevin Korb wrote: rsync -vai
>>> --lin-dest=/path/to/source/ /path/to/source/ /path/to/target/
>>> Note that if you try it with relative paths the link-dest will
>>> be relative to the source not .
>>>> Thank you Kevin.
>>>> I'd forgotten that --link-dest needed a relative path. This
>>>> works for me:
>>>> rsync -Haxv --stats --link-dest ../dir1 dir1/ dir2
>>>> The / on the end of the second dir1 is, of course,
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.0.20 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
-----END PGP SIGNATURE-----
More information about the rsync