# Use your bucket for backups

> Send WordPress, server and computer backups to your S3 bucket with UpdraftPlus, Phluit Backup, restic or Duplicati.

Source: https://docs.phluit.com/products/object-storage/s3-use-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

1.  In WordPress, open **UpdraftPlus → Settings**.
2.  As remote storage, choose **S3-Compatible (Generic)** (or DigitalOcean Spaces).
3.  Enter your access key, secret key, the location `my-bucket/site-name` and the endpoint `fra1.digitaloceanspaces.com`.
4.  Click **Test**, then save.

## WordPress: Phluit Backup

In **Phluit Backup → Storage**, add an **S3-compatible** destination with the same endpoint, bucket, access key and secret key.

## Servers: restic

```
export AWS_ACCESS_KEY_ID=YOUR_ACCESS_KEY
export AWS_SECRET_ACCESS_KEY=YOUR_SECRET_KEY
restic -r s3:https://fra1.digitaloceanspaces.com/my-bucket/server1 init
restic -r s3:https://fra1.digitaloceanspaces.com/my-bucket/server1 backup /var/www
```

## Computers: Duplicati

Storage type **S3 compatible**, server `fra1.digitaloceanspaces.com`, your bucket name, access key and secret key.

## 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](/products/object-storage/s3-versioning/).
-   Choose a region different from where your site or server runs, so one problem can't take both.
