Please, excuse my horrible english. I'm triyng to find the way to clone a HDD server to a remote destination location, using SSH and, if possible, compress data on-the-fly to minimize unnecessary data transmission between them. The main objective is a server migration between physical & VPS appliances.
Broadband is approx 50 - 60 MB/s (transfers at 6-8 MB/s). Running a full-dd-copy estimate a 28 hours copy time. I want reduce that time as much as possible without reduce partition size in source server (i want source as-is).
Origin & destination servers are in offline status (both initiated in rescue mode).
Data on original server are 60 GB. Rest of partition is filled with zeros.
There is a way to archive that?
Until now i cloning entire disks (but not so large) with this command:
dd if=/dev/sda status=progress bs=10M conv=fsync | ssh user@ip dd of=/dev/sda
That works, but this time i'm trying to do it with too much data...
Any ideas?...
Thank you very much in advance to all. Best regards!
D.
e2fsimage
might reduce the transfer to only used data blocks. But those tools are, of course, file system dependent.