you can archive more than one partition in one file. see the link given on my 1st post.
Originally Posted by darthpenguin
you can restore on the same partition (better) or different. just make sure that the uncompressed file doesn't go beyond your partition.
You can also archive several filesystems in a single archive file:
You can also restore both the first and the second filesystem in the same time: (numbers 0 and 1)
fsarchiver savefs /media/backup/gentoo-rootfs.fsa /dev/sda1 /dev/sda2
In terminal type
fsarchiver restfs /media/backup/archive-multple-filesystems.fsa id=0,dest=/dev/sda1 id=1,dest=/dev/sdb1
You will find many example....
if you want to use tar method then see this thread
Explains what is happening.
Only thing to note is ...
to gain root user..
use media instead of mnt.
sudo tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/media --exclude=/sys /
sudo'ing to root is not the way to do most things, issue the sudo before the command you wish to execute as 'root user'.
The above thread, tho' long & involved, will introduce you to the lay out of files in your machine.
You have to use live cd (System Rescue CD) which contains fsarchiver or another distro installed in your pc & have fsarchiver.
When you work on any partition make sure that partition is unmounted.
yes need to restore grub in case of root or boot partition.
Once I restore an image or archive will the machine boot or will I need to rebuild grub? I imagine I'll need to change the hostname? Anything else I should change?