Cloning a remote server (Ubuntu) into a local VM
Posted on 2013-05-16
We have a server held in a datacenter a few hundred miles away.
We need to clone the hard disks machine to a local server (We have a matching machine locally) in order to run some testing on it without affecting the live server. The question is, how can we do this?
The server is running Ubuntu 10.04 and has 3 hard disks (sda, sdb, sdc) - it boots from sdc.
I have no issue with sda and sdb as I can use dd to clone them, but I'm not sure how to go about cloning sdc.
My questions are..
1) Best way to clone over ssh using dd - preferably compressing the stream to make the transfer quicker (About 120GB to transfer)?
2) Best way to clone the main hard disk (sdc) over ssh (About 80GB used). I cannot shut the server down and boot from a live CD or usb stick?