View Single Post
  #7  
Old 18th June 2009, 14:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
Default

Let's say you have a second hard drive, /dev/sdb. Then you'd use this command:

Code:
dd if=/dev/sda of=/dev/sdb
Quote:
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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote