«   2021/05   »
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
05-08 06:43
Notice
Today
9
Total
1,423,023
관리 메뉴

변군이글루

[네임서버] DNS(named) 백업 스크립트 본문

+ 네임서버

[네임서버] DNS(named) 백업 스크립트

변군 변군이글루 2015. 2. 7. 22:13

DNS(named) 백업 스크립트

 

# cat dns_backup.sh

---

#!/bin/sh
set -x
 
DIR="fvm01.scbyun.com-`date +%Y%m%d`"

cd /root/.nl/

mkdir $DIR
mkdir $DIR/sbin
mkdir $DIR/etc

cp -rpf /var/named $DIR
cp /etc/named.conf $DIR/etc
cp /etc/named.logging.conf $DIR/etc
cp /etc/named.root.key $DIR/etc
cp /etc/named.iscdlv.key $DIR/etc
cp /etc/rndc.* $DIR/etc
cp /usr/sbin/named $DIR/sbin
#cp -pr /usr/local/nbind $DIR
#rm -rf $DIR/named/log

tar cvfp $DIR.tar $DIR --exclude=$DIR/named/log
gzip $DIR.tar

rm -rf $DIR

--- 

 

 

 

0 Comments
댓글쓰기 폼