blob: b4bb01ee97759d49ed2e9db6a24f0a53dcbd552a (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/bash
if [ "$1" == "pre" ]; then
HOST=`hostname`
echo "Dumping all databases into one backup file"
mkdir -p /var/backups/byteback/mysqldump-full
mysqldump --defaults-file=/etc/mysql/debian.cnf -A --events | gzip > /var/backups/byteback/mysqldump-full/dump.sql.gz && mauvesend -i mysqldump-split-${HOST}-low -c now -r +30h -s "mysqldump on ${HOST} has not run for over a day" --detail='Please try running manually to see what the problem was, and check the mailing list'
fi
|