How exactly the backups run?

June 8, 2017 274 views
Backups Ubuntu

Hi everyone,

Maybe there was this question before but I must know it for sure. How does exactly the backups running? I've got website on my droplet and suddenly everything just broke.

When I click on restore backup it will restore everything like website, sql and other stuff and will work for sure?

2 Answers

Hi @brzezickiandrzej

I'm guessing you're talking about the DigitalOcean Droplet Backup.

It will take a so-called "snapshot" of the entire droplet. When you restore, it will restore to the exact point from when the backup was taken.

It will restore the droplet, so if you're storing data on Block Storage or if you keep your database on a different droplet, then it won't restore that.

Is there a guarantee that it is 100% bullet-proof and will always work for sure? No.
That's why you should always have multiple backups, in different locations, using different backup methods.
Known words from a major breakdown at GitLab, which they publicly wrote about:
So in other words, out of five backup/replication techniques deployed none are working reliably or set up in the first place.

You can read more about the DigitalOcean's droplet backup system:

DigitalOcean offers affordable and easy-to-use backups built into the Droplet interface. Enabling this service on your Droplet can provide automatic, snapshot-based backups at regular intervals, allowing you to easily revert or spin up new instances off of the...


To expand on what @hansen provided, snapshots and backups are full-state backups, meaning they backup your Droplet as-is, in it's current state.

When you restore from a snapshot or backup, it restores the Droplet entirely, not just specific data. If you need to be able to recover specific data, such as a single database, one or more files, etc, then it would be best to setup some sort of backups on the server and store them offsite to block storage or another medium.

For example, if you had Apache, MySQL, and PHP on the Droplet, along with multiple databases and a few hundred files, and you restore from a snapshot, all of that is recovered. You can't (as of this reply) pick and choose what you want to restore.

You can, however, restore the image to another Droplet, access it, and pull down the data you need. I have done that in a few cases for clients where that was all they had and restoring from a full backup wasn't ideal or feasible. Once done, you can then destroy the Droplet that you brought online to pull data from.

When it comes to backups, the snapshot and backup service is nice to have, though I wouldn't rely on it exclusively. You should still implement other forms of backup -- whether it's storing to block storage or sending them to another data center.

Have another answer? Share your knowledge.