Thursday 8 August 2013

Backup/Restore your hard-drive - Linux

I had chosen to backup my hard-drive in-case of any failures.Below are the steps which was made to restore from the hard disk image which was chosen. 

I would here brief you about how could one create an image of an primary disk(i.e here in this case hard disk sda) was backed up to the other remote server.

I have used Power of Clonezilla

as backup and recovery tool.


                               




Backup:


Here is what it follows for cloning the image of the HDD(sda). Few snaps are omitted as it would be self explanatory.

1. Download an ISO image of CloneZilla and boot clonezilla live media


2. When asked to choose between starting Clonezilla and entering login shell, start clonezilla
.


3. I am selecting disk-partition as an image to backup.


4. Save an image to remote server.


5. Configure dynamic ip address on the current system. Later configure your IP address, PATH to remote host for saving the disk backup image.



6. Using the provided SSH server information, Clonezilla will use sshfs to mount the remote SSH server's destination directory locally. Press ENTER to continue.

7. Next, you will be asked to choose a cloning mode. Choose "Beginner mode" which accept all default options.


8. In the next screen, decide whether to back up a whole disk or a specific partition in the disk. Here I choose an entire disk.


9. Next, type in the name of a Clonezilla image to be created, and mark the disk to back up
.









10. 
Next, use "check saved image" option if you want to check whether or not an image is restorable after the image is generated.
Finally, Clonezilla will start generating a (compressed) image of a chosen disk drive, and transfer it to a remote SSH server.


11. You will see the following screen after the image has been successfully generated and verified. Press ENTER to continue.


12. 
Now you can 
either 
power off the computer, reboot, or start over the same backup procedure for other disk drives/partitions.



 
Restore:


Follow the same steps as above, choose "restoredisk" option to restore a whole disk from the image that was created in the past.


Next, choose a Clonezilla image to restore
and the destination disk.





Rest all taken care by Clonezilla.

Successful : I was able to boot to the server after restoration of the partition.

No comments:

Post a Comment