Skip to content

Instantly share code, notes, and snippets.

@kyleterry
Last active December 22, 2015 07:48
Show Gist options
  • Save kyleterry/6440103 to your computer and use it in GitHub Desktop.
Save kyleterry/6440103 to your computer and use it in GitHub Desktop.
#!/bin/bash
touch -r backup.sql backup.sql.marker
while :;
do
if [[ -n $(find . -name *.sql -newer backup.sql.marker) ]];
then
echo "Backup finished at $(date)" | mailx -s 'New Backup' [email protected]
break
fi
done
aplay bark.wav
rm backup.sql.marker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment