Re:My experience with using cp to copy 432 million files (39...
by mturmon on Thursday September 11, 2014 @06:26PM
(#8305545)
About rsync: if you just use -a, it does not copy hard links correctly:
If you do specify -H, rsync does keep track of hard links, but presumably at the cost of keeping a data structure similar to cp:
Of course, rsync could be more efficient at keeping track of the hard links than cp, but there's no reason to believe a priori that it would be.
[ Parent
| on HN ]
Re:My experience with using cp to copy 432 million files (39...
by kazinator on Thursday September 11, 2014 @06:29PM
(#8305559)
Darn, thanks! I've been using rsync for incremental backups (themselves hard-link-based) for years, but neglecting to do this. That is to say, snapshot N+1 shares structure with backup N to save space (via hard links) via --link-dest. But files may be replicated because -H (missing) is orthogonal of --link-dest.