Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Today I've made an update for my Fedora 18 and get 19th version. On previous versions I had troubles with nvidia drivers (I have a laptop). Neither nvidia drivers from package nor from nvidia site didn't work for me. It somehow completely crashes Xorg so I can't work.

Days passed. I want to try it again (primarily to use external screen that can't be used with default drivers). But I don't want to reinstall the system in case it won't work. So I'm searching for a solution how to make a snapshot of a whole system so I can restore it if I want. Not only snapshot of /home partition but the whole system.

Does anyone have ideas?

Thanks in advance.

share|improve this question

1 Answer 1

The way I typically back up my whole system would be to become root and run the following command.

tar cvzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys /

This command simply tars up all the files in the root directory excluding the generated directories and the tar file itself of course. You may want to exclude more directories unimportant to you (like /tmp) just add another --exclude statement.

Then when you've fubared your system, you can restore with

tar xvpfz backup.tgz -C /

Which changes directory to root and extracts the archived. Note the p flag. That preserves permissions when extracting and it is important that you use it (I only mention that because I've forgotten it before).

This guide seems to explain it pretty well.

One thing that I haven't had problems with before but just thought of was that any files added after the archive was created would still remain after you restore from the archive. So you may want to compare the file list on the tar file with the file list from your borked system. Easier way is to just ls -R > originalFileList before the archive. Then after restoring run the same command ls -R > newFileList then diff originalFileList newFileList and you can do what you want with the added files.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.