Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

It's just been days since I started using Ubuntu on my PC and I'm doing my best to keep it updated at all times via 'Update Manager'. But what I've noticed is that if I update today the next day when I log in there is a new set of updates waiting for me.

I want to keep these updates as a backup so I don't have to download the updates all over again if I am forced to freshly install Ubuntu. So what do I Backup?

NOTE: I'm doing this following some random website I visited while surfing the net. This is what I'm doing (in Terminal) to backup files

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

and to restore it I'm using this (after I put backup.taz.bz2 in the root location)

sudo su
cd /
tar xvpfj backup.tar.bz2 -C /

but I'm not sure if this backups the updates...does it?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

If want to backup your updates & installed packages. Just copy /var/cache/apt/archives to some another location and copy them back after fresh install. You will save many packages to be re downloaded.

Doing the above would be easy using AptonCD

Also you can use remastersys to create image of your current system and install from it with updated package and installed files. Probably it also keeps track of your settings. I'm not sure about the last feature.

share|improve this answer
    
By "backup your installed packages" do you mean that when I paste the files in /var/cache/apt/archives (after fresh install) I wont have to install the softwares I had (before the fresh install) OR it just stores the list of files (names) so that after copying it will start downloading those softwares? –  Mohd Arafat Hossain May 3 '12 at 8:29
    
It will just store the file (not the list name). It won't install automatically. Now whenever you install a software, if the software was previously installed and not updated in between, the package will not be downloaded.If the software is updated it will be downloaded. (Say in server the version is v0.3 and you have installed v0.2 previously) Its more like, if you are uninstalling a software and reinstalling it. –  Web-E May 3 '12 at 8:43
    
Hmmm....I get it, thanks for the help :) –  Mohd Arafat Hossain May 3 '12 at 8:51

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.