A
A
Andrey2014-12-20 00:10:58
linux
Andrey, 2014-12-20 00:10:58

How to quickly copy 40 million files to another server?

There is a server with pictures
on it 40 million files, there are small ones of 5-10 kb, there are more 50-100 then the options are not to do it by files, but it can immediately rewrite the entire disk image or copy it by sectors. I would like to be able to do this in a few hours.

Answer the question

In order to leave comments, you need to log in

7 answer(s)
A
Armenian Radio, 2014-12-20
@andreyvlru

Something like this:
On an aggregated channel 2x1Gbit gives out 100 megabytes per second. If you cheat on the block sizes bs= and mtu, and also turn off encryption for ssh, you can, I think, squeeze out all 200 megabytes.
Conduct, on unmounted! (or readOnly mounted) disk!
No wonder dd stands for DestroyData.
Options for setting encryption (-c) and speed (better - more):
ssh-cipher-speed-chart.png?w=630

V
Vladislav, 2014-12-20
@click0

I migrated via zfs send | zfs recv via ssh. The speed was only limited by the read/write speed of the HDD.

J
jcmvbkbc, 2014-12-20
@jcmvbkbc

tar -cC source-dir . | ssh target-ip "tar -xC target-dir"

I
Ilya Evseev, 2014-12-20
@IlyaEvseev

An overview of different ways to quickly copy:
moo.nac.uci.edu/~hjm/HOWTO_move_data.html

V
Vlad Zhivotnev, 2014-12-20
@inkvizitor68sl

rsync across directories via GNU parallel.

V
Viktor Kompaneets, 2015-12-29
@vato35

The main problem is how the files are arranged in the directory tree. Often the gag is related to building a list of files, and not to processing it.

P
pfg21, 2017-09-22
@pfg21

if the interserver network is fully controlled and there is no one else in it, then netcat can be used instead of ssh. minus encryption == plus speed/resources

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question