Backup Monitoring
Make sure your backups run correctly.
Backups are critical but often forgotten. We discover they don't work the day we need them.
MoniTao Heartbeat monitors your backup scripts and alerts you immediately if there's a problem.
Why Monitor Backups?
Backups can fail silently for various reasons:
- Insufficient disk space
- Network connection interrupted
- Incorrect permissions
- Script corrupted after an update
seo.backup_monitoring.how_title
seo.backup_monitoring.how_desc
seo.backup_monitoring.example_title
seo.backup_monitoring.example_desc
#!/bin/bash
# Script de backup avec heartbeat MoniTao
# Signal de debut
curl -X POST https://monitao.com/api/heartbeat/start/YOUR_TOKEN \
-H "Authorization: Bearer YOUR_SECRET"
# Execution du backup
mysqldump -u user -p database > /backup/db_$(date +%Y%m%d).sql
# Verification et signal de fin
if [ $? -eq 0 ]; then
curl -X POST https://monitao.com/api/heartbeat/ping/YOUR_TOKEN \
-H "Authorization: Bearer YOUR_SECRET"
else
curl -X POST https://monitao.com/api/heartbeat/fail/YOUR_TOKEN \
-H "Authorization: Bearer YOUR_SECRET"
fi
Use Cases
- MySQL/PostgreSQL database backup
- File backup to S3
- Rsync sync to remote server
Configuration
- Create a heartbeat job with your backup interval
- Integrate start/ping/fail calls in your script
- Test the script and verify the ping arrives
Frequently Asked Questions
How do I know if my backup really worked?
Check the return code of your backup command before sending the success ping.
Can I send backup details (size, duration)?
Currently heartbeat only records timestamp and execution duration.
What grace period to configure for a daily backup?
A 1-2 hour grace period is recommended for heavy backups.
Can MoniTao restart a failed backup?
No, MoniTao only monitors and alerts. Restart remains your responsibility.
Useful Links
Ready to Sleep Soundly?
Start free, no credit card required.