Synchronising droplet backups

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?



Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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.