Backup
Hello:
I have a question about backing up configs and stuff. What is the easiest way to back up an entire system? Is there a convention to back up certain applications and config files? |
Are you talking about one linux, or many linuces, or linux+*doze, or linux+*BSD?
|
I am a noob and I want to backup my Linux installation (1 machine) and all the config files/apps/ and stuff I did to get this thing up and running. Is there a way to do this and do a fast restore in case of failure?
|
There is a program called Ghost for Unix and is supposed to make an exact image of the hard drive, this can be used to restore a system after a disaster, just search google for more information, this maybe what you are looking for.
|
Quote:
There are many, many backup threads on this forum and you should do a search with keywords backup best You could do something like Code:
tar -cvjf mysystem.tar.bz2 / then do Code:
tar -xvjf mysystem.tar.bz2 |
Quote:
|
You are right, but this works on every linux system and has no external dependencies. With a live CD, you can fix everything you mentioned in a couple of minutes. I tried this on my own system when I was rearranging the partition table, and I was able to bring up my new system in a new partition in less than five minutes (not counting the untar ;) )
It's probably also a good idea to become familiar with native *NIX features because coming from *doze which leaves the user helpless, you can do anything you need to do either from inside *NIX or from another *NIX system on the same machine. It's quite nice, actually :) I'd like to see someone use native *doze features to backup his system, repartition his HD, and restore his system in another partition (of a different size and filesystem) on the same machine, and have it all work. Good luck :p |
I tend to backup a list of all the packages I have installed, the contents of /etc, /usr/local/etc, /root /proc/config.gz and a file containing information about my partitions.
It means restoring takes a little longer as I have to manually reinstall all the packages in my list, etc. But then I can just copy the config files back. As I said, takes a little longer to restore, but the big advantage is that each backup takes only a few megabytes on disk. |
Quote:
I've tried googling it but alls I can find is articles about students falling asleep in lectures and more people on forums referring to it, has anyone got a link? |
Quote:
Your idea has given my something to try, making partitions is particular easy under linux, maybe make a script to read the backed up /etc/fstab file and create the new partitions based on it. Create your own bootcd to run this script and then extract the tar file, make the bootloader and anything else it needs. |
That sounds like an interesting idea. It might not be 100% though because the fstab doesn't have to contain everything normally used by that linux. It does have to contain root though :p
|
All times are GMT -5. The time now is 05:32 AM. |