From: hackbard Date: Thu, 18 Sep 2003 23:53:03 +0000 (+0000) Subject: added dns config stuff for backup X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=026d55d4612eea2a125797446e6e478ab592f3d1;p=scripts%2Fscripts.git added dns config stuff for backup --- diff --git a/backup.sh b/backup.sh index e8b7afe..ebf8c16 100755 --- 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