LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-05-2007, 06:20 PM   #1
jadurant
LQ Newbie
 
Registered: Oct 2004
Distribution: kubuntu 6.10 edgy
Posts: 16

Rep: Reputation: 0
Backup Strategy


i have been backing up my whole system using a bash script (yes i have been burned, thank you). it occured to me that this may not be the most efficient or effective strategy.

in the event of a catastrophic failure i could extract only my critical directories (~/ and /var/www) to a new linux configuration. what would happen if i restored my old system completely to a different hardware platform? could i just restart the machine and be home free or would my configuration from the old system screw everything up?

tnx,
jad
 
Old 06-05-2007, 06:38 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
I've been fighting with this myself lately. In my limited experience, restoring an image to different hardware hasn't worked very well.

I settled on just backing up critical directories (/home and /etc). More often than not, my need for recovery is because I accidentally deleted something I wanted to keep.

I must caveat that with saying that I use dpkg in Debian to keep a list of what's installed on my system. There's a mechanism for taking that list and importing it into dselect, then doing an upgrade that installs the same packages (though not necessarily the same versions). Basically it looks like this
Code:
dpkg --get-selections > installed.txt
aptitude update && dselect update
dpkg --set-selections < installed.txt
apt-get dselect-upgrade
It works across machines, even across architectures. Then I just weed through my backed up /etc to replace the config files I need. You do have to be careful though to make sure config files haven't changed if you get a newer program version installed than on the old machine.
 
  


Reply

Tags
backup, complete, restore


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
Backup strategy DIL23 Linux - Newbie 4 03-10-2007 07:59 PM
Linux backup strategy feffer777 Linux - Software 4 01-24-2006 09:54 PM
Backup strategy xpucto Linux - Networking 2 11-16-2005 12:19 PM
Building a backup strategy pembo13 Linux - General 16 04-28-2004 01:02 PM
Backup strategy Swift&Smart Linux - General 3 04-17-2003 03:07 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration