X-Git-Url: https://hackdaworld.org/gitweb/?p=scripts%2Fscripts.git;a=blobdiff_plain;f=backup.sh;fp=backup.sh;h=ebf8c16a46aba415d5a5f764a145a3b8d42fcccd;hp=e8b7afe7a2d949afff35ae153931eae18b77277c;hb=026d55d4612eea2a125797446e6e478ab592f3d1;hpb=04f172eec17381b7f0236fc540e7542cd6ba8e92 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