Synchronising droplet backups

March 16, 2016 415 views

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?


1 Answer

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.

Have another answer? Share your knowledge.