Backups

Persistent data is placed in encrypted volumes otherwise it may be deleted at any moment, when the host fails. A daily backup of all volumes is done on the host designated to host backups (for instance bind-host) when the service is created as follows:

$ enough --domain example.com service create --host bind-host backup

The number of backups is defined with the backup_retention_days variable as documented in this file and can be set in ~/.enough/example.com/inventory/group_vars/backup-service-group.yml like so:

---
backup_retention_days: 7

Note

If the quota for volume snapshots displayed by enough –domain example.com quota show is too low, a support ticket should be opened with the cloud provider to increase it.

A volume backup can be used to restore a service in the state it was at the time of the backup.

The volumes are replicated three times and their data cannot be lost because of a hardware failure.