Subject: Configuration files to backup
To: None <netbsd-help@netbsd.org>
From: None <dinsen@danbbs.dk>
List: netbsd-help
Date: 08/26/1998 10:18:11
I recently experienced a disk crash of the disk holding my root file system at
home. So I reinstalled NetBSD and the pacakges I could remember to have installed
and fetched configuration and data files from my /usr filesystem and an outdated
tar backup of the whole system.

Now I want to build a system that backs up all my data and the configuration
files I'm interested in. This will not enable me to recreate the system quickly
in the event of a crash (by restoring a full backup). But I prefer reinstalling
NetBSD and restoring my data and configurations at a later time. This will also
make it easier for me to binary upgrade NetBSD and packages.

So my question is: Which configuration files should I need (in addition to the
ones I know I have been modifying). 

In particular, which files are associated with passwords. Is it enough to save
/etc/passwd and /etc/master.passwd? This is my current list for an intranet
server I run at work:

/etc/rc.conf
/etc/rc.local
/etc/fstab
/etc/syslog.conf
/etc/motd
/etc/crontab
/etc/passwd
/etc/master.passwd
/etc/group
/etc/ld.so.conf              # to include /usr/pkg/lib
/etc/ifconfig.we1            # my ethernet if
/etc/inetd.conf
/etc/hosts
/etc/resolv.conf
/etc/named.boot
/etc/named                   # where I keep my named data files  
/etc/printcap
/etc/sendmail.cf
/etc/aliases
/etc/csh.*
/etc/exports                 # NFS
/etc/pcnfsd.conf             # -
/usr/pkg/etc/lynx.cfg
/usr/pkg/etc/smb.conf        # samba configuration
/usr/pkg/etc/rc.d/samba.sh   # ...
/var/samba                   # a spool directory for samba
/usr/pkg/http/conf/*.conf    # apache configuration
/usr/local                   # ... the full /usr/local tree
/homes                       # ... all home dirs
/usr/public_html             # ... our HTTP document root

And then I would dump the output from pkg_info into a file to record what pacakages
I have installed.

Anders
-------------------------------------------------------------
Anders Dinsen                    http://www.danbbs.dk/~dinsen
                                 dinsen@danbbs.dk