reload config via killall -HUP $BINARY
[scripts/scripts.git] / backup.sh
index 1a1ebc8..3d92329 100755 (executable)
--- a/backup.sh
+++ b/backup.sh
@@ -94,7 +94,7 @@ done
 
 for i in dhcpd.conf fstab hosts host.conf hosts.allow hosts.deny lilo.conf \
                profile sendmail.cf resolv.conf exports fb.modes inetd.conf \
-               xinetd.conf mp3user mp3db.conf; do
+               xinetd.conf mp3user mp3db.conf modules.conf named.conf; do
        if [ -f /etc/$i ] ; then
        echo "copying /etc/$i"
        cp /etc/$i ./etc
@@ -119,6 +119,12 @@ if [ "$host" = "gate" ] ; then
                cp -r /etc/mail ./etc
        fi
 
+       # mlsit procmail
+       if [ -d /home/mlist ] ; then
+               echo "copying mlist procmail config"
+               cp -r /home/mlist mlsit_pm_config
+       fi
+
        # irc stuff 
        mkdir -p ./ircd
        [ -f /etc/opt/unrealircd/unrealircd.conf ] && \
@@ -151,6 +157,12 @@ if [ "$host" = "right-hand" ] ; then
                        tar -cf ./chroot/$i.tar /chroot/$i
                fi
        done
+       
+       mkdir ./named
+       if [ -d /var/named ] ; then
+               echo "copying dns data"
+               cp -r /var/named/* ./named
+       fi
 fi
 
 # hackstation / mobile / hdw / sparc specific data