LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-14-2007, 08:27 AM   #1
Karthi_India
LQ Newbie
 
Registered: Apr 2007
Posts: 27

Rep: Reputation: 15
What are all files should be taken backup in a linux server


Hi All,

Can anybody please tell me What are the necessary files should be taken backup in Linux server?

For example, If I hosted a site in a linux server(Application server) and It has Oracle database.

Instead of taking backup in Oracle, What others should be taken backup in tht server.

Please help me! I am new to linux


Thanks,

Karthi
 
Old 04-14-2007, 09:11 AM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
Quote:
Originally Posted by Karthi_India
Can anybody please tell me What are the necessary files should be taken backup in Linux server?
For example, If I hosted a site in a linux server(Application server) and It has Oracle database.
Instead of taking backup in Oracle, What others should be taken backup in tht server.
Well backup needs are very varied and almost always a matter of personal choice. People backup things they deem necessary. But if you want to generalize, you can start with
/etc, /boot. You can also include /home and /var if the available space on the backup media permits or you feel you need to backup those two directories as well. Again this is a very generalized list, audit your system to find out what is important to you and back that up.
 
Old 04-14-2007, 09:24 AM   #3
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,580
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
It is a lot easier to decide what to exclude than what to include.

Typically on our systems we do an "OS" backup that excludes any application or database filesystems/directories we've created. We ALSO do backup those application and database filesystems/directories separately. It is somewhat easier to reload an OS than to recreate missing data from a database so it is actually more critical to get those DB backups than the OS backup.

Note that backing up Oracle Databases while they are running (unless you're using RMAN to do it) doesn't really work. It will backup but you'll find you can't "recover" the database after you've "restored" it from the backup medium. Typically we will shutdown the DB before the backup then restart it after the backup.

The deal is that Oracle and applications do put "some" files in "system" directories like /etc but the bulk of what they do should be in the database/application directories. There is no reason to try to exclude these tiny things they do in "system" directories when backing up the "OS".
 
Old 04-14-2007, 02:59 PM   #4
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 83
You should backup any files that are important to you, but each person will have a different idea as to what is "important" and what is not. My view is that the most critical files are data files that you've created. As jlightner pointed out, if your server crashed, it's relatively straightforward to resinstall the operating system and various applications (eg, Oracle). However, if your users' data is lost, there is no way to recover it unless you have good backups. I don't think it's possible to provide you with a detailed list of which files you need to backup (after all, we can't see what's on your system) but clearly you would want to save the Oracle database files (this includes the physical files that contain the tablespaces, also the archive logs, etc) plus any user data.

Note that Oracle has its own utilities for backing up the data -- those files should be backed up regularly (ie, daily) and moved off site. At the risk of telling you what you already know, here's a very brief cheat sheet for running Oracle in archive log mode.
 
  


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
LXer: Backup MySQL databases, web server files to a FTP server automatically LXer Syndicated Linux News 0 08-11-2006 10:54 PM
backup linux files to NT server paraiso Linux - Software 4 06-23-2006 03:11 AM
Backup files to ftp server KristianThrane Linux - Software 1 05-13-2006 06:01 PM
Using Linux Redhat 9 to Backup Windows Server Files linuxbuck Linux - Software 1 03-07-2004 09:48 PM
SCRIPT: backup defined files/dirs to FTP-server markus1982 Linux - Software 0 05-25-2003 07:06 AM


All times are GMT -5. The time now is 07:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration