xxlray
November 14th, 2012, 10:28 PM
I originally wrote in this thread (http://ubuntuforums.org/showthread.php?p=12354284#post12354284) 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:
sudo apt-get autoremove
sudo apt-get autoclean
(I furthermore suggest to delete some old kernel files from /boot)
Than comes the archive magic:
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
(fast/no compression - big backup file)
or
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
(medium compression speed - medium file size)
or
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
(slow compression - small file)
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?
The thread explains how to make a system backup before upgrade.
First one should clean the packages a bit:
sudo apt-get autoremove
sudo apt-get autoclean
(I furthermore suggest to delete some old kernel files from /boot)
Than comes the archive magic:
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
(fast/no compression - big backup file)
or
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
(medium compression speed - medium file size)
or
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
(slow compression - small file)
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?