PDA

View Full Version : [all variants] Backing Up Ubuntu



moose4204l
July 21st, 2009, 01:18 PM
I want to dual boot Vista on my laptop. Is there a utility that will back up my ubuntu side first. Also, if I some how ruin everything, does that backup image completely restore the laptop to the way it was even with a reformat?

thanks

SunnyRabbiera
July 21st, 2009, 01:23 PM
Well you can just get an external hard drive, and make sure to constantly back up your home directory.

bacil
July 21st, 2009, 01:24 PM
you can backup whole your partition to file with



dd if=/dev/sda1 of=yourfile.iso

and then after reformat you can just easily after you bootfrom live cd put your data back



dd if=yourfile.iso of=/dev/sda1


mind you /dev/sda1 is your partition so change it to what ever your ubuntu partiton is, dont forget to copy yourfile.iso somewhere where you will not delete it by formating and lastly after all that you have to reinstall grub as described in this thread

http://ubuntuforums.org/showthread.php?t=224351

TuckLive
July 21st, 2009, 01:26 PM
I use rsync to backup only my home directory to an external drive. I have a .txt file to keep track of my programs that I would need to reinstall if I had a meltdown.


sudo rsync --delete -azvv /home/tucklive/ /media/disk/Adam/Bigbox/

Paddy Landau
July 21st, 2009, 01:33 PM
You may want to try either PartImage (http://www.partimage.org/) or Clonezilla (http://clonezilla.org/).

They both allow you to back up a partition and restore it. They also back up only the used parts of the partition, and compress the image, so that they use the least possible space.

PartImage doesn't support ext4 but Clonezilla does.

Cheesemill
July 21st, 2009, 02:03 PM
+1 for CloneZilla

Paddy Landau
July 21st, 2009, 02:11 PM
+1 for CloneZilla
Apart from the fact that the download isn't working at the moment...