I originally wrote in this thread but was asked to open a new one.
The thread explains how to make a system backup before upgrade.
First one should clean the packages a bit:
(I furthermore suggest to delete some old kernel files from /boot)Code:sudo apt-get autoremove sudo apt-get autoclean
Than comes the archive magic:
(fast/no compression - big backup file)Code:sudo tar -cv --one-file-system --exclude=/home/* --exclude=/dev/* --exclude=/proc/* --exclude=/sys/* -f /home/system-backup.tar /* && sudo chown `whoami`:`whoami` /home/system-backup.tar
or
(medium compression speed - medium file size)Code:sudo tar -cvz --one-file-system --exclude=/home/* --exclude=/dev/* --exclude=/proc/* --exclude=/sys/* -f /home/system-backup.tar.gz /* && sudo chown `whoami`:`whoami` /home/system-backup.tar.gz
or
(slow compression - small file)Code:sudo tar -cvj --one-file-system --exclude=/home/* --exclude=/dev/* --exclude=/proc/* --exclude=/sys/* -f /home/system-backup.tar.bz2 /* && sudo chown `whoami`:`whoami` /home/system-backup.tar.bz2
I am thinking about upgradig my Ubuntu. I remember that I had a lot of issues getting the tv-receiver and my graphic card running.
My questions are whether this method will also backup my working kernel and drivers and how do I recover my system from the archive?



Adv Reply


Bookmarks