Is there a way to back up settings ?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Is there a way to back up settings ?

Postby Christof999 on Wed Jul 18, 2007 4:49 pm

Hi guys,

I just got my computer just the way I like it.

I was wondering if there is anyway to back up settings or configuration, and to what extent it can be done.

For example... I just got my KDE desktop the way I like it. I put a trash can on it, I shortened the bottom panel and made it transparent, I changed the splash screen, installed new icons and themes and I added new options to the right click menus.

Now all this customization takes awhile, is there a way for me to save it and back it up each time I install a system ?

What about the packages I installed. I installed KDE base and a whole bunch of packages such as grsync, kooka, kmix, kde guidance etc. Is there a way to back this up or automate it for next time ?

What about network settings, etc ? I just got NFS working. Id hate to have to do it again later on...

Whats possible to back up and whats not ? Hopefully at least the desktop look and feel.

I know sooner or later something will get broken or a new system will come out and Ill reinstall or upgrade. I want to try and save some time as it takes about one full day to set up everything since I have three computers.

Thanks
C
Christof999
Level 3
Level 3
 
Posts: 120
Joined: Mon Jun 04, 2007 4:04 pm

Linux Mint is funded by ads and donations.
 

Postby Husse on Wed Jul 18, 2007 5:40 pm

To have your /home on a separate partition goes a long way towards your goal
Tons of settings there....
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Postby scorp123 on Wed Jul 18, 2007 5:40 pm

User avatar
scorp123
Level 8
Level 8
 
Posts: 2287
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Re: Is there a way to back up settings ?

Postby scorp123 on Wed Jul 18, 2007 5:58 pm

Christof999 wrote: (about installed packages) Is there a way to back this up or automate it for next time ?
1. Backup /etc/apt/sources.list ... or copy it to one of your other systems.

2. On system #1 issue this command:
sudo dpkg --get-selections > packagelist.txt

=> This will write your package selections and the status of all packages into that text file "packagelist.txt". Now copy that file to your other system(s).

3. On your other system(s) you now read in that file:
sudo dpkg --set-selections < packagelist.txt

=> System #2 will now take over the package selections that were previously defined on system #1

4. All you need to do now is to execute the install process:
sudo apt-get dselect-upgrade

=> Result: System #2 will now have the same packages installed like system #1.

"Armed" with these commands you can clone installations (e.g. produce identical systems with identical software selections) in a couple of minutes. Just make sure you get the /etc/apt/sources.list right (e.g. it should be the same on all systems).

Christof999 wrote: Whats possible to back up ...
Everything. With my "tar + gzip" method you can in fact clone an entire machine if you wanted to. There are nicer methods to do this, but my "primitive" method at least will work even under worst circumstances. See the links above posted earlier.

Christof999 wrote: I know sooner or later something will get broken or a new system will come out and Ill reinstall or upgrade. I want to try and save some time as it takes about one full day to set up everything since I have three computers.
I suggest reading this book: "UNIX Backup & Recovery". Highly recommended.

I really should post my backup scripts here ...
User avatar
scorp123
Level 8
Level 8
 
Posts: 2287
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland


Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 17 guests