Hey,
Wondering if anyone has a solution to automatically backing a magento store and database which has been set up using the Magento Image Disk?
Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hey thanks.
I’ve used this function before, any ideas how I could store the backup offserver?
Cheers
In the Magento admin panel, there are a few options for backing up your system. This can be found under Systems -> Tools -> Backups

There are three options. System Backup both your database and your entire web folder. Database and Media Backup will backup your database and the media directory, while Database Backup you simply backup your database.
You could also do a manual backup of your database, from the commandline. For more information on backing up MySql, check out:
Heya,
Magento’s built-in backup functionality will come handy in this situation. You can then use rsinc or scp to transfer the backup to a remote server.
The run the backup, execute the following command:
bin/magento setup:backup --code --media --db
This command will create a backup of your Magento instance including code, media files, and the database.
Once the backup is created, you can use rsync to transfer the backup to another location. For example, if you want to transfer it to a remote server, you can use a command like this:
rsync -avz /path/to/your/magento/var/backups/ user@remote_server:/path/to/destination/
Replace /path/to/your/magento/var/backups/ with the actual path to your Magento backups directory, user with the username on the remote server, remote_server with the IP address or hostname of the remote server, and /path/to/destination/ with the destination directory on the remote server where you want to transfer the backup.
After the transfer is complete, verify that the backup files are present in the destination directory on the remote server.
Hope that this helps!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.