I’m planning a setup with a separate web server and database server. I’d like to make use of the automatic backup feature, but with the variability in the timing of the backups the images will not be in sync.
I thought a simple way may be for the web server to trigger the db server to create a dump when the web server backup takes place.
Obviously that’s still not perfect timing, so is there a better way?
Secondly, for my idea to work the web server would have to know when a backup was being made from it, is that even detectable?
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!
Right now there is no way I am aware of to trigger an event when the backup process starts short of checking droplet events constantly. Instead, an option would be to, as you mentioned, back up the database to your web server and at the same time back up your web files placing the database and web backups in a different directory. That way you’d have a complete synced backup inside the backup image created of your web server.
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.