Re: W: best way to clone server data using rsync
On Tue, May 01, 2012 at 01:08:14PM +0200, Tuxoholic wrote:
> rsync seems like the right choice, but how will it handle job canceling when
> I'm done for the day?
Yes. But, for the initial sync, I tend to prefer a tarpipe which is a lot quicker.
( cd /srcdir && tar cf - . ) | ssh user@somehost '( cd /destdir && tar xf - )'
Add 'z' to the tar arguments (on both sides) if you have reasonable CPUs and
your data is not already compressed (don't bother for MPEGs, JPEGs, etc.; or
if one end of the transfer is an embedded system).
Once that has run, or if it was interrupted, I finish off with an rsync just
to be sure. (others have already commented on your rsync arguments.)
Reply to: