Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Trying to copy a bunch of data over and time, unfortunately, is of the essence. I'd like to do an rsync of all the data in one direction, pretty much rsync just clobbers what's over on the destination server. Is there a way to do an rsync and just say, "overwrite all files"

Is there a better way of doing this? We're talking 500GB of data that only has to go in one direction.

share|improve this question

migrated from stackoverflow.com Jun 3 '10 at 21:56

This question came from our site for professional and enthusiast programmers.

add comment

4 Answers 4

First thing that comes to mind: use scp. For simple copy operations the syntax is the same.

share|improve this answer
add comment

Checksums are not used by rsync by default - they have to be enabled with the -c flag. From the manpage:

-c, --checksum

This changes the way rsync checks if the files have been changed and are in need of a transfer. Without this option, rsync uses a “quick check” that (by default) checks if each file's size and time of last modification match between the sender and receiver.

I don't think the quick, non-checksum calculation will be your limiting factor.

share|improve this answer
add comment

First thing that came to my mind: erase whatever is in the destination folder before rsync.

share|improve this answer
add comment

I use the -W option with rsync for this purpose. I haven't fully tested so this may not do what I think it does. You might also use the -I option to enforce clobbering. From the manpage:

 -W, --whole-file       copy files whole (w/o delta-xfer algorithm)
 -I, --ignore-times     don't skip files that match size and time
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.