AIM : To clone server 1 disk to server 2
Server 1:
dd if=/dev/sda | nc 192.168.0.12 1234
Suppose Server 2's IP address in this example is 192.168.0.12 and listening on port 1234.
Note: /dev/sda is the disk to clone. Choose which disk u want to clone.
Server 2: (run this first)
nc -lp 1234 | dd of=/dev/sda
Note: U can view the progress of process by installing pipe viewer to see the progress bar.Then the format will be:
nc -lp 1234 | pv | dd of=/dev/sda
RESULT : This will clone the disk from server 1 to server 2.
Link to download Netcat
No comments:
Post a Comment