bash:transfer_disk_over_ssh
Differences
This shows you the differences between two versions of the page.
bash:transfer_disk_over_ssh [2014/11/12 14:59] – created biggi | bash:transfer_disk_over_ssh [2014/11/12 15:29] (current) – removed biggi | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Recently I had to move some VPSes from one server to another, as the old server was being shut down (new cheaper and faster host). To minimize the downtime, I took data from one LVM volume and put it directly in the LVM of the new server. | ||
- | Receiving side: | ||
- | < | ||
- | **Explanation: | ||
- | * I use " | ||
- | * I set up a listening netcat socket on port 19000, awaiting data from the " | ||
- | * I decompress incoming data from netcat with pigz (" | ||
- | * Finally I put the decompressed data into the new LVM volume with " | ||
- | |||
- | Sending side: | ||
- | < | ||
- | **Explanation: | ||
- | * I read the data with dd | ||
- | * I compress it with pigz | ||
- | * I then use netcat to send the data. | ||
- | |||
- | **NOTE:** You need to start the " |