|
|
Log in / Subscribe / Register

rsync -a is not the same as cp -R

rsync -a is not the same as cp -R

Posted Nov 6, 2020 8:06 UTC (Fri) by Wol (subscriber, #4433)
In reply to: rsync -a is not the same as cp -R by mchehab
Parent article: Deprecating scp

My photographs directory (large files, 24MP raw) is heavily sym-linked. Does -a retain hard symlinks - I believe not. Copying that directory could well cause a "disk full" on the destination, too ...

Cheers,
Wol


to post comments

rsync -a is not the same as cp -R

Posted Nov 6, 2020 10:01 UTC (Fri) by taneli (subscriber, #95265) [Link]

Indeed, you will need -H to preserve hard links.

rsync -a is not the same as cp -R

Posted Nov 7, 2020 23:22 UTC (Sat) by Sesse (subscriber, #53779) [Link] (1 responses)

FWIW, links in UNIX are either hard (hardlinks) or symbolic (symlinks). There's no such thing as “hard symlinks”.

rsync -a is not the same as cp -R

Posted Nov 8, 2020 0:03 UTC (Sun) by Wol (subscriber, #4433) [Link]

Whoops :-)

I meant, of course, hard links.

Oh - and if you don't need to preserve hard links (which I do), it's not a good idea to try. I think my rsync or cp crawled, I had so many it needed to keep track of ...

Cheers,
Wol


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds