#!/bin/bash ########################################################## # 5 Jan 2005 # # Christopher Juckins # # # # Reports date/time of Backup Files # ########################################################## # Notification email address SYSADMIN=username@domain # Get local hostname MACHINE=`hostname -s` # List directories for backups of Windows 2003 Servers date > /tmp/backup_status.txt hostname -s >> /tmp/backup_status.txt echo "" >> /tmp/backup_status.txt cd /home/PRIMARY_DOM echo "/home/PRIMARY_DOM" >> /tmp/backup_status.txt ls -lh >> /tmp/backup_status.txt echo "" >> /tmp/backup_status.txt cd /SECOND_DOM echo "/SECOND_DOM" >> /tmp/backup_status.txt ls -lh /SECOND_DOM >> /tmp/backup_status.txt echo "" >> /tmp/backup_status.txt df -hP >> /tmp/backup_status.txt # Mail results /bin/mail -s "Backup status on $MACHINE" $SYSADMIN < /tmp/backup_status.txt