Linux backup on the fly

Backing-up:

cd /
tar cvpjf backup.tar.bz2 --exclude=/proc 
                         --exclude=/lost+found 
                         --exclude=/backup.tar.bz2 
                         --exclude=/mnt 
                         --exclude=/sys /

Restoring:

tar xvpfj backup.tar.bz2 -C /
Advertisements
Linux backup on the fly