How to organize a backup database by email?

    3 answers 3

    Before moving to my own cloud, I used http://www.backup2mail.com/

    Now I use mysqldump and add it locally and to remote FTP.

      $ mysqldump необходимые_параметры | mail -s 'это бэкап' ваш@адр.ес 

        It is important to understand the size limit of the attachment inside the mail server. Make a backup of the database and send it to the mail is initially the wrong approach.

        Register a cloud drive (Yandex Disk, Google Disk or any other) and save your backups directly to it.

        For myself, I chose Yandex Disk (because of the ability to download files via http using the REST API).

        If you decide to upload to Yandex, this article will help you understand how to access it from your server .