[Discuss] rsync v. cp in data migration
Edward Ned Harvey (blu)
blu at nedharvey.com
Fri May 24 08:57:50 EDT 2013
> From: discuss-bounces+blu=nedharvey.com at blu.org [mailto:discuss-
> bounces+blu=nedharvey.com at blu.org] On Behalf Of Greg Rundlett
>
> Would cp
> cp -au /source/* /target
> be preferable to rsync?
> rsync -vazn --checksum --progress --stats /source/ dest/
cp won't transfer file deletions. Also, what do they call "newer?" If it's just checking timestamp, then rsync is definitely more advanced.
If you're going across a reasonably fast link (1Gb, or perhaps, even 100Mb) then compression will slow you down. Should get rid of -z
Should probably add --delete
More information about the Discuss
mailing list