LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-11-2007, 06:04 AM   #1
c_mitulescu
Member
 
Registered: Nov 2003
Location: London
Distribution: Ubuntu
Posts: 35

Rep: Reputation: 15
Question What folders+files to backup for near bare metal restore


Hi,
One of the servers I look after is a Red Hat Enterprise Linux with LVM and an Oracle DB server. Part of my backup strategy is to do a regular(weekly) backup of the file system by archiving the following folders(contained in a "dirlist" file):

/bin
/boot
/etc
/home
/initrd
/lib
/misc
/opt
/root
/sbin
/selinux
/srv
/tftpboot
/u01
/u02
/usr
/var

and I archive with the following command:
tar czf backupfile.tar.gz -T dirlist

My intention is to be able to do a very fast restore in case of hd failure and the way I would feel comfortable doing it is by first doing a standard Red Hat install and then extracting the filesystem from the archive in order to get all my previous settings back including a working Oracle DB. I have tried using g4l but unfortunately it proved to be unreliable in repeated tests plus I may not bring the server back onto the same hardware( vmware is quite likely).

I am guessing that I should be leaving out a number of files and directories from my archive list such as /etc/fstab, /etc/lvm in order for the backup to be portable.

Can somebody please point out what directories and files I should be leaving out and how I would exclude them in the tar command?
Thank you
 
Old 04-11-2007, 07:47 AM   #2
frank_abacus
LQ Newbie
 
Registered: Jan 2003
Distribution: Slackware
Posts: 5
Blog Entries: 1

Rep: Reputation: 0
I don't have exactly the same requirement, but I do keep backups of a number of systems (mostly Slackware) on a dedicated server.

What I do is use rsync and backup the lot. (This is very quick since rsync only copies the differences) Then if I need to recreate a system I just start with a blank disk, boot from a CD (Slackware or more often Knoppix) and copy the lot from the backup server.

Installing a standard, in your case, Red Hat system isn't necessary and is rather reminiscent of the way you have to do things with Windows.

So long as I restore everything where it was, and can then sort out LILO or GRUB so that it'll boot, I find that everything works. This has got me out of very serious trouble on several occasions!

Remember that disks are cheap these days, and enormous! I use an LVM setup on the backup server, so that it's possible to increase the size relatively simply.

Good luck!
 
Old 04-11-2007, 11:40 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Bare Metal Restore involves restoring a system from scratch. In most cases unless you have a lot of custom applications and configurations, you only need to backup the essential parts of your system that are configured or installed after the OS is installed.

And as for Oracle DB, I do hope you are shutting down the database during the backup, as simply tarballing will not recover a database to it's normal state when it was backed up running, which could just lead to the whole database corrupt or other missing or corrupt data. You should really be using RMAN if you can't take the system down to perform backups and if that's not an option, you should create downtime to take the backup.

Bare Metal Restore process goes as:

1. Install OS
2. Restore custom applications and configurations from backup.
3. Restore user data.

Last edited by trickykid; 04-11-2007 at 11:41 AM.
 
  


Reply



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
LXer: Methods of Linux Bare Metal Restore and Disaster Recovery LXer Syndicated Linux News 0 08-06-2006 08:21 PM
PXE bare metal provisioning kd93088 Red Hat 1 08-07-2005 08:58 AM
Best way to backup / restore mail folders i_s Linux - General 1 04-23-2005 02:05 PM
Can I do a Bare Metal Restore? bob151 Linux - Software 1 04-14-2005 06:41 PM
Bare-metal restore problems with Redhat ES 3.0 robthky Linux - General 0 08-12-2004 09:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:04 AM.

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