Copying a large directory tree locally? cp or rsync?
Posted
by
Rory
on Server Fault
See other posts from Server Fault
or by Rory
Published on 2009-07-20T14:36:34Z
Indexed on
2012/10/06
21:40 UTC
Read the original article
Hit count: 222
I have to copy a large directory tree, about 1.8 TB. It's all local. Out of habit I'd use rsync
, however I wonder if there's much point, and if I should rather use cp
.
I'm worried about permissions and uid/gid, since they have to be preserved in the clopy (I know rsync does this). As well as thinks like symlinks.
The destination is empty, so I don't have to worry about conditionally updating some files. It's all local disk access, so I don't have to worry about ssh or network.
The reason I'd be tempted away from rsync, is because rsync might do more than I need. rsync checksums files. I don't need that, and am concerned that it might take longer than cp.
So what do you reckon, rsync
or cp
?
© Server Fault or respective owner