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 copy (I know rsync does this). As well as things like symlinks.
The destination is empty, so I don't have to worry about conditionally updating some files. It's all local disk, 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?
rsyncwrites twice to the disk. It is approx double the time needed forcp. Only usersyncif you need to sync files, e.g. copy only the updated files, incremental backups, etc, which is wherersynccan effectively save the disk io. Otherwise,cpmust be a double faster for a blank copy. Not exactly the thing, but you can get an idea of "rsyncwrites twice" from here. – midnite Apr 05 '22 at 11:48