#!/bin/sh
#Backup of ...

files='/etc/rc.conf /etc/pureftpd.passwd /etc/rc.firewall /etc/named.conf /etc/namedb /usr/local/etc'      
group=configs
thishost=`hostname -s`
backuphost=backups.domain.com
login=backuplogin
pass=backuppassword
datestamp=`date +%m-%d-%Y`
cd /backup

#begin
tar -czf ${thishost}_${group}_${datestamp}.tgz ${files}
/usr/local/bin/ncftpput -u ${login} -p ${pass} -V ${backuphost} / ${thishost}_${group}_${datestamp}.tgz
mv ${thishost}_${group}_${datestamp}.tgz old
