LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-18-2007, 09:17 PM   #1
sn0w
LQ Newbie
 
Registered: Mar 2007
Distribution: Ubuntu 6.10
Posts: 6

Rep: Reputation: 0
Best way to backup Ubuntu?


Hello, I finally got my box configured to do what a windows box does right out of the box (wmv, mp3, dvd, java, flash and all those other codecs as well as installing video drivers to fix the infamous resolution problem that Ubuntu is known for). I want to back up my box now so in case something happens and I have to reinstall linux I don't have to go through all the headaches to configure every little thing since I don't trust Automatix or EasyUbuntu and do everything manually.

My question:
What is the SIMPLE and/or BEST way to backup my system (OS, personal files, applications and configurations)? What software do you use? And where can I get it (website, repository...)?

Thanks
 
Old 03-18-2007, 10:00 PM   #2
ithawtewrong
Member
 
Registered: Jul 2004
Location: Mile High
Posts: 161

Rep: Reputation: 30
As a general rule of thumb I usually rename all .conf files I need to change by adding a .original to the end. I can then in a worst case scenario do a
Code:
sudo find / -name .original
I can then backup those files to another location and drop them in on a new box if I need to reformat or create a new image.

I will usually have to "install" the other apps, but at least the configs can get placed in quick and I'm up an running. I realize that it's probably a little late for you now, but may help in the future. I do this for a simple reason. It takes very little drive space for a backup of a fully configured system.

As far as personal information and documents you simply backup /home every now and then, or create it on it's own partition on the hard drive and never format it on a fresh install. If you do that you'll never have to worry about backups while upgrading your distro, although you're still screwed if the h/w fails.


If you're looking for a snapshot pick up a drive image solution like Ghost or something.

Last edited by ithawtewrong; 03-18-2007 at 10:04 PM.
 
Old 03-18-2007, 10:27 PM   #3
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
Read this:
http://www.psychocats.net/ubuntu/backup
 
Old 03-19-2007, 09:00 PM   #4
sn0w
LQ Newbie
 
Registered: Mar 2007
Distribution: Ubuntu 6.10
Posts: 6

Original Poster
Rep: Reputation: 0
^^^^ Good stuff, I will try it!
 
Old 03-20-2007, 07:12 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
OS: Well, the OS is the kernel that came with ubuntu so you only need to remember the version number.
personal files: Probably in /home, /root, /var/www
applications: applications are all packaged if you did this cleanly so once again, you need to get the list of packages. Additionnaly the applications that you compiled are in /usr/local
configurations: they are in /etc and in debconf files

Which summarizes to:

List of packages:dpkg --get-selections > /var/backups/apt-backup-selections

List of configuration files: debconf-get-selections > /var/backups/debconf-selections

Now tar and gzip all this:
1.tgz:
/root
/home
/var/cache/bind
/var/backups
/var/www
/usr/local
2.tgz:
/etc

On the remote system:

Untar 1.tgz
Reinstall the list of packages
dpkg --set-selections < /var/backups/apt-backup-selections
apt-get dselect-upgrade
This will reinstall all packages (kernel included)

Untar 2.tgz to get back your configuration files in /etc and get back debconf system files:
debconf-set-selections < /var/backups/debconf-selections

Your backup will be much much smaller and efficient.
I agree its a big more complicated, needs testing..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using rsync to backup data. Best way to backup folders? Micro420 Linux - General 2 11-23-2006 01:13 AM
Error when attempting backup with File Backup lglrgl Linux - Software 0 08-03-2006 10:38 AM
Ubuntu 6.06 - Backup server ideas The slayer Ubuntu 4 06-17-2006 05:42 AM
Selective backup to CDRW, or other backup methods. trekk Linux - Software 1 11-03-2003 02:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 12:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration