https://bevice.ru/posts/589.html
Бэкап базы и отправка почтой