]> hackdaworld.org Git - scripts/scripts.git/commitdiff
added dns config stuff for backup
authorhackbard <hackbard>
Thu, 18 Sep 2003 23:53:03 +0000 (23:53 +0000)
committerhackbard <hackbard>
Thu, 18 Sep 2003 23:53:03 +0000 (23:53 +0000)
backup.sh

index e8b7afe7a2d949afff35ae153931eae18b77277c..ebf8c16a46aba415d5a5f764a145a3b8d42fcccd 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 modules.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
@@ -151,6 +151,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