Show HN: Regular MySQL Backup to Email
7 points| tariky | 3 years ago |github.com
For those lazy like me, try to setup this app and give it a go.
7 points| tariky | 3 years ago |github.com
For those lazy like me, try to setup this app and give it a go.
scrapheap|3 years ago
I'd advise against using email for sending the actual backups as there's quite a few security risks and a lot of technical things that could catch you out over time (e.g. hitting size limits as your database grows).
As an alternative you could use a secure upload to a remote location for transferring the backup file and then email yourself on any failures.
LinuxBender|3 years ago
Then another db in another region pulls down that backup, decompresses it and loads it and a script does a query for a known set of data. If the test fails I get an email. This is a very simplistic test. Proper DBA's would implement far more advanced validations than what I am doing.
It isn't as fast as real time replication but has the advantage of testing my backups and giving me a few ways to get out of a tangle. This method gets slower with much bigger databases. One could still do real time replication in addition to this.
Komodai|3 years ago