What are config files for a server?

Posted on 2005-04-30
Last Modified: 2010-03-18

  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.
Question by:cctanaka
    LVL 2

    Expert Comment

    LVL 38

    Expert Comment

    > - 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
    /var/www/html/*   <=== It depends on your "DocumentRoot" setting in httpd.conf
    LVL 3

    Expert Comment


    Hope this helps you

    LVL 1

    Author Comment

    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.?
    LVL 1

    Author Comment


     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.)

    Carlos Cesar
    LVL 38

    Accepted Solution

    > about hosts and networks files

    IP address:

    Check this URL for more details:


    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now