In order to do my backups, I have to make a dump of the database and upload it to my Space. However, I’m struggling to figure out, how to install mysqldump?
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!
App Platform works a bit differently than droplet. It runs each component of your application as a separate, ephemeral container on the platform. When a container is unhealthy or updated, we launch a new instance and destroy the old. To that end, we don’t recommend installing tooling on running containers. You could also use a Dockerfile to build an image which combines mysqldump and your application, though we generally would recommend running this type of maintenance in a separate container.
Scheduled job containers are on our roadmap, and would be the right type of component for running periodic, scheduled backups. For this, we’d recommend using a Dockerfile to build an image which includes your back up script and mysqldump. The mysql docker image could be a good base (FROM) image for this specialized short-lived container.
Until we release schedule jobs, we’d recommend doing manual backups locally or from a droplet.
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.