Loading Blog Search...

Monday, December 12, 2005

How to backup ur system

As linux support for my laptop (acer travelamte 3002wtci) is not good, I need to patch and compile kernel. The problem is even after that, some upgrade will break some componenets. Thus, I think it is not a bad idea to backup my system when it is in excellent status, and recover when errors happen.
I my ubuntu, i use the following command to do backup:
sudo tar cvpzf backup.tgz --exclude=/proc --exclude=/lost+found --exclude=/backup.tgz --exclude=/mnt --exclude=/sys --exclude=/var/cache/apt/archives --exclude=/home/xxx --exclude=/media/ /
To recover, the command is:
sudo tar xvpfz backup.tgz -C /
For more info, please refer to Here

No comments: