############################################
# AACABLE.NETWORK Backup Program v1.0 #
############################################
echo -e ” Backing up Data of GW.aacablenet.org . . . ”
# mount server4 d drive
# Directory for copying file
/usr/sbin/server4d
rm -fr /firewall/aacable/firewall.tar
cp -vr /firewall/aacable/* /mnt/server4/backup/mac/firewall/aacable/ –reply=yes
cp -vr /usr/local/mrtg-2/bin/* /mnt/server4/backup/mac/firewall/aacable/mrtgbackup –reply=yes
cp -vr /etc/httpd/conf/httpd.conf /mnt/server4/backup/mac/firewall/aacable/ –reply=yes
cp -vr /etc/samba/smb.conf /mnt/server4/backup/mac/firewall/aacable/ –reply=yes
cp -vr /var/named/chroot/var/named/aacablenet.org.hosts /mnt/server4/backup/mac/firewall/aacable/ –reply=yes
cp -vr /etc/mail/sendmail.cf /mnt/server4/backup/mac/firewall/aacable/ –reply=yes
cp -vr /etc/mail/sendmail.mc /mnt/server4/backup/mac/firewall/aacable/ –reply=yes
# tar / zip All Directories . . .
cd /firewall/aacable
tar zcvf /firewall/aacable/firewall.tar /firewall/ /usr/local/mrtg-2/bin /etc/httpd/conf/httpd.conf /etc/mail/sendmail.cf /etc/mail/access /etc/samba/smb.conf /etc/named.conf /var/named/chroot/var/named/aacablenet.org.hosts /mnt/server4/backup/mac/firewall/aacable/macbackup/
# Email to johny_reico@yahoo.com :d
# gzip -v9 /firewall/aacable/firewall.tar
mutt -s “Daily Backup of gw.aacablenet.org” -a /firewall/aacable/firewall.tar johny_reico@yahoo.com < /firewall/aacable/dobackup
rm -fr /firewall/aacable/firewall.tar
echo “Bakcup & email Done”
Leave a Reply