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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-05-2012, 12:03 PM
|
#1
|
|
Member
Registered: May 2011
Posts: 181
Rep: 
|
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!
|
|
|
|
03-05-2012, 12:34 PM
|
#2
|
|
Member
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347
Rep:
|
It depends on which service the server was running.
|
|
|
|
03-05-2012, 12:38 PM
|
#3
|
|
LQ Newbie
Registered: Feb 2012
Posts: 9
Rep: 
|
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.
|
|
|
|
03-05-2012, 08:41 PM
|
#4
|
|
Guru
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 6.4, Centos 5.9
Posts: 15,021
|
I have to agree with both of the above.
Without a detailed(!) knowledge of the system in qn, there's no way to tell...
|
|
|
|
03-06-2012, 12:51 AM
|
#5
|
|
Member
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347
Rep:
|
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 
|
|
|
|
03-06-2012, 07:00 AM
|
#6
|
|
Senior Member
Registered: May 2010
Location: Dehradun, Uttarakhand, India
Distribution: RHEL, CentOS, Fedora, Ubuntu, Debian
Posts: 1,346
|
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 |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:21 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|