rsync equivalent of 'cp -al' ?
cgdennis at btinternet.com
Tue Jun 18 10:27:49 MDT 2013
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 usage.
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, essential.
Chris Dennis cgdennis at btinternet.com
Fordingbridge, Hampshire, UK
More information about the rsync