Under windows system I'm used to create an image of HD with driveImageXML.
What's the best approach to have an Image of the hard-drive containing the OS, with Ubuntu Server?
I'd like to have a snapshot of the current configuration so If ever happens that the primary disk will fail I could simply restore this image on a new HD, unplug the broken one, plug the newly created. Saving me days on setting up and reconfigure the whole Unix server.
edit: I've found also this on ubuntu forums, taking SU privileges you can just launch the following command:
tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys /
to create an archive with all OS stuff, without the need to stop the server.
But I've also read that i will need to reinstall GRUB when if I'll move to another HD. Seems that untar and copy files to the new HD will not be enough for the system to start up again. Is it correct?