Let's say you have a second hard drive, /dev/sdb. Then you'd use this command:
dd if=/dev/sda of=/dev/sdb
Moreover, in case I lose my server, how shall I be able to restore it from the image file?
Boot into a rescue system (e.g. Knoppix) and then dd from /dev/sdb to /dev/sda.