I have a running server with /dev/sda1 partition and a remote server with /dev/sda1 partion also. I want to clone the partition of running server to remote server.
I want to try this:
On remote server:
nc -l -p 2000 | bzip2 -d | dd of=/dev/sda1
On running server:
bzip2 -c /dev/sda1 | nc 192.168.1.10 2000
It's the right way or there are some others better solutions?