logoalt Hacker News

8fingerlouietoday at 8:18 AM1 replyview on HN

I'm aware of the comments saying rsync or rclone, and I absolutely also use those, but for initial migrations I often find myself simply using tar instead.

Something like :

    (cd /src/dir && tar cf -) | ssh user@host "(cd /dst/dir && tar xvf -)" 
will do nicely.

It won't saturate 4 multichannel links, you'll most likely need rclone or rsync for that (or robocopy it appears), but it's much faster than rsync on initial copies.

Then for good measure, once the tar copy finishes, I run a single rsync verification between the two targets.

That being said, my latest storage migration was performed using either ChronoSync or Carbon Copy Cloner from my Mac mini server. They won't do anything rsync cannot already do, except present data and copy history in a graphical environment.


Replies

jasodetoday at 9:22 AM

>simply using tar instead

Be aware that tar doesn't preserve creation/birth times and keeping that original metadata is important to some people if the target file system can record it. Robocopy preserves/transfers creation times by default and recent rsync versions (3.2.3 2020-08-06) can do it with the extra option --crtimes.