Created
January 16, 2012 16:25
-
-
Save bradymholt/1621619 to your computer and use it in GitHub Desktop.
Backup Mount Notifier
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
[email protected] | |
BACKUP_LOCATION=/mount/backup | |
mountpoint -q $BACKUP_LOCATION | |
if [ $? == 0 ]; then | |
echo "$BACKUP_LOCATION is mounted!" | |
else | |
echo "$BACKUP_LOCATION is NOT mounted!" | mail -s "Backup Mount Status" $NOTIFY_EMAIL | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment