• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 270
  • Last Modified:

What are config files for a server?

Hi,

  I have a SuSe 8.1 working as a server:
- User account server
- Samba Server (User must login in a domain), so there are smbusers too
- DNS Server
- IPTables for routing a small network thru a broadband connection
- Web Server (Apache)

I have a kind of "backup"  computer with another name where I make copies of all Samba shared files (smbmount ...., cp ...).
I want to have a batch command that I could run and change all the configuration files (in etc an another places), so that I just restart this backup computer and substitute the main computer in the case of problem.

Is that possible? How?

Thanks in advance.
Cesar
0
cctanaka
Asked:
cctanaka
1 Solution
 
LarryHoCommented:
0
 
wesly_chenCommented:
> - User account server
/etc/passwd, /etc/shadow, /etc/group

> samba
/etc/samba/smb.conf or /etc/smb.conf
samba share directories

> DNS server
/etc/named.conf, /var/named/*

> IPtables
/etc/sysconfig/iptables  (please check and confirm)

> Web server
/etc/httpd/conf/httpd.conf
/var/www/html/*   <=== It depends on your "DocumentRoot" setting in httpd.conf
0
 
jojuCommented:

Hope this helps you

http://confstore.sourceforge.net/

Thanxs,
Joju.
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
cctanakaAuthor Commented:
LarryHo, that is a very interesting backup tool, but I have already one backup solution. Thanks anyway.

Joju, it is also a very interesting way to backup config files, but I have different flavors of Linux, so I am not if I can exchange files directly without make any change. Thanks.

Wesly_chen, I am looking for that kind of info. I still have some doubts: what about hosts and networks files? Are you sure those files are enough, I mean I would like to change the name of the backup computer, its IP address etc.?
0
 
cctanakaAuthor Commented:
Hi,

 I am wainting for a confirmation about the config files needed to be modified to "transform" one linux machine in another linux machine (such thing as IP address, machie name, network description, samba config, etc.)

Thanks
Carlos Cesar
0
 
wesly_chenCommented:
> about hosts and networks files
hostname
/etc/hosts
/etc/hostname

IP address:
/etc/sysconfig/network/ifcfg-*

Check this URL for more details:
http://openskills.info/infobox.php?ID=949

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now