Use your bucket for backups
A bucket is a good off-site home for backups. Give each app or server its own Read and write key, so you can revoke one without touching the others.
WordPress: UpdraftPlus
Section titled “WordPress: UpdraftPlus”- In WordPress, open UpdraftPlus → Settings.
- As remote storage, choose S3-Compatible (Generic) (or DigitalOcean Spaces).
- Enter your access key, secret key, the location
my-bucket/site-nameand the endpointfra1.digitaloceanspaces.com. - Click Test, then save.
WordPress: Phluit Backup
Section titled “WordPress: Phluit Backup”In Phluit Backup → Storage, add an S3-compatible destination with the same endpoint, bucket, access key and secret key.
Servers: restic
Section titled “Servers: restic”export AWS_ACCESS_KEY_ID=YOUR_ACCESS_KEYexport AWS_SECRET_ACCESS_KEY=YOUR_SECRET_KEYrestic -r s3:https://fra1.digitaloceanspaces.com/my-bucket/server1 initrestic -r s3:https://fra1.digitaloceanspaces.com/my-bucket/server1 backup /var/wwwComputers: Duplicati
Section titled “Computers: Duplicati”Storage type S3 compatible, server fra1.digitaloceanspaces.com, your bucket name, access key and secret key.
Keep backups safe
Section titled “Keep backups safe”- Keep File listing on Restricted.
- Turn on Versioning if you want deleted or overwritten backups to be recoverable (old versions use storage). See Versioning.
- Choose a region different from where your site or server runs, so one problem can’t take both.
Was this helpful?
Thank you. If something is missing, tell us.
