Clonezilla from Command Line

Solution 1:

Install clonezilla, then run /opt/drbl/sbin/clonezilla (Debian might put this somewhere different, if it's not there, look around a bit for it) . There's a curses-based GUI that will take you through the process. You don't have to screw around with command line arguments at all.

As far as installing it, it should come with DRBL, which you can find at http://drbl.sourceforge.net/

Solution 2:

You will need partclone to be installed in the "rescue System".

You can also use a dd+gzip to make the image and then restore it. You can also transfer over the network with netcat.

Destination:

nc -l 12345|gzip -d > /dev/sda1

Source:

dd if=/dev/sda1 bs=1024000|gzip |nc  1.2.3.4 12345

Where 1.2.3.4 is the destination IP. And 12345 is the port in the range 1-65535.

edit: Notice that this approach requires that CHS is the same on both disks. Cylinders, Heads and Sectors. Otherwise you can have boot problems. At least with windows. PS. I coulnd't find the comment button - therefore the edit.