Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-05-2012, 01:03 PM   #1
Registered: May 2011
Posts: 194

Rep: Reputation: Disabled
list Important files to backup

Hi all,

I am going to retire a RHEL5 server.
What are the important configuration files (in general) to backup.
Thanks in advance!
Old 03-05-2012, 01:34 PM   #2
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
It depends on which service the server was running.
Old 03-05-2012, 01:38 PM   #3
LQ Newbie
Registered: Feb 2012
Posts: 9

Rep: Reputation: Disabled
Not to sound flip about it but disk space is cheap. If I were you I'd back it all up. Once the new server install is up and running fore some time... then you can get rid of the backup.
Old 03-05-2012, 09:41 PM   #4
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
I have to agree with both of the above.
Without a detailed(!) knowledge of the system in qn, there's no way to tell...
Old 03-06-2012, 01:51 AM   #5
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
The very basic configuration is in common *.config files that are in /etc and in rc/init scripts and in /etc/sysconfig/ but I'd backup everything to be sure I didn't forget a thing
Old 03-06-2012, 08:00 AM   #6
Satyaveer Arya
Senior Member
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
System files:
Most of the configuration files are inside /etc area.
/etc area:
*.conf, *.ini, auto.master, auto.misc, export, fstab, group, passwd, shadow
{Some important .conf files are dhcpd.conf, namd.conf, resolv.conf, nsswitch.conf, modules.conf etc.}
One important .ini file is php.ini.
/etc/httpd/conf/ area: httpd.conf {Only for web servers}
/etc/samba/ area: smb.conf, smbpasswd {Only for Samba servers}
/etc/ssh area: sshd_config {Only for restricted servers like NIS, DNS, DHCP, mailhost}
/etc/sysconfig: desktop, network, yppasswd
/etc/sysconfig/network-scripts: ifcfg-eth0

Sytem Data:
Most of the data is inside /var area
/var/named {DNS server data files}
/var/lib/mysql {MySQL database files}
/var/yp {NIS data}

Home Directories:
Any native directory (Not NFS mounted area)
/root area

Data area:
Any area which is being used for keeping data
Currently Started/Killed Daemons list ls /etc/rc5.d > daemon5list
{If machine is running at level 5, similarly for level 3 etc}

The important directories are /etc, /home, /var, and /srv. You may want to add /root, and remove unneeded bits from /var.

rsync is good if you want the files to be directly accessible, tar is fine if you don't.


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
important system files backup manishrmusale Linux - General 2 06-08-2011 08:24 AM
[SOLVED] Trying to backup files using a file list and tar BlackCrowe Programming 8 09-15-2010 11:06 AM
list of important ubuntu config files deathalele Linux - Distributions 3 09-30-2008 12:05 PM
Tape backup (VERY important) WorldBuilder Linux - General 20 02-08-2004 02:07 AM
most important to backup? mnauta Linux - General 4 01-21-2004 05:30 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:35 AM.

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