Backups copy an instance's whole disk so you can roll it back after a mistake, a bad update or a break-in.
Droplets from a connected DigitalOcean account show their snapshots and DigitalOcean's automatic backups here; see Connect a DigitalOcean account.
Turn backups on#
On an instance you created in the portal, the Backups box shows Turn on backups when your provider offers them. Owners, Admins and Developers can turn them on and off.
- Backups cost a fixed share of the instance's price, shown in the box (e.g. 20%: a ₹500/month instance costs ₹600/month with backups). The extra is charged hourly together with the instance, from the moment you turn backups on until you turn them off. Your wallet history shows these charges as "+ backups".
- How often backups run and how many are kept is set by your provider.
- Turning backups off stops the charge. The provider may remove the backups already taken.
Back up, restore and delete#
- Back up now starts a backup straight away. It takes a few minutes and then appears in the list. Everyone who can manage instances can start one.
- Restore replaces everything on the instance's disk with that backup. Anything written since the backup is lost. The instance is unavailable while it restores.
- Delete removes a backup permanently.
Restore and delete need the Owner, Admin or Developer role. Every backup action is recorded in the audit log.
Instances from your own cloud accounts show the backups your provider keeps, if their plan includes backups.
Private clouds (OpenStack and CloudStack)#
Servers in your own OpenStack or CloudStack cloud always have the Backups box. The backups live in your cloud and use its storage. Any cost is between you and the cloud's operator.
- OpenStack: a backup is an image of the server, kept in the server's region. Restore rebuilds the server from it, keeping its addresses. Servers that boot from a volume are copied as volume snapshots, and some clouds can't rebuild those; the error says so.
- CloudStack: a backup is a VM snapshot of the server's disks. Some clouds revert snapshots only while the server is stopped; the error says so.
Automatic backups#
Under Automatic backups, choose:
- Every day or Every week (and the day);
- the hour, in your browser's time zone;
- how many to keep, up to 30.
The portal starts each backup within a few minutes of that hour. Before each automatic backup, the oldest automatic ones beyond that number are deleted, so the new one makes up the number. Backups taken with Back up now are never deleted automatically.
If a run fails, for example because the cloud is unreachable, the box shows the error. The audit log records every run, and the next run tries again. Servers suspended for a negative balance are skipped. Turn off automatic backups keeps the backups already taken.