copy.sh 827 Bytes
Newer Older
hark's avatar
hark committed
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
#!/bin/bash -x

. paths.sh


#
# copy all 020 reverse zones
# 

#
# ki zone
#
echo "copying ki zone: "

cd $OUT/ki.squesh.net
scp db.10.205.14 db.ki $HFD/gitzones.conf root@trashbat:/etc/bind/zones/
cd $OUT

cd $OUT/ki.020
scp db.10.205.14 db.ki $HFD/gitzones.conf root@trashbat:/etc/bind/zones/
cd $OUT

cd $OUT/ki.020
scp db.10.205.14 db.ki $HFD/gitzones.conf root@atc:/etc/bind/zones/
cd $OUT


#
# irl zone
#
echo "copying irl zone: "

cd $OUT/irl.020
scp db.10.205.12 db.irl root@stanleyH:/etc/bind/zones/
cd $OUT

cd $OUT/irl.020
scp db.10.205.12 db.irl root@atc:/etc/bind/zones/
cd $OUT


#
# reload configs
#
echo "reload trashbat: "
ssh root@trashbat /etc/init.d/bind9 reload
echo "reload stanleyH: "
ssh root@stanleyH /etc/init.d/named reload
echo "reload air traffic control: "
ssh root@atc /etc/init.d/bind9 reload