S3-compatible bucket
s3 Writes backups to a bucket in Amazon S3, Cloudflare R2, Backblaze B2, MinIO or another S3-compatible store.
Setup
Create a bucket
- In the store's console, create a private bucket, such as
pando-backups. - Add a lifecycle rule that deletes incomplete multipart uploads after one day.
- Copy the bucket's region and, unless the store is Amazon S3, its S3 API endpoint.
- In the store's console, create a private bucket, such as
Create an access key
- Create an access key limited to the bucket, allowed these actions:
Action s3:ListBucket s3:PutObject s3:GetObject s3:DeleteObject s3:AbortMultipartUpload - Copy the Access key ID and the Secret access key.
- Create an access key limited to the bucket, allowed these actions:
Settings (7)
endpointEndpointEmpty is Amazon S3.
regionRegionRequiredCloudflare R2 uses auto.
bucketBucketRequiredIt has to exist already.
prefixPrefixEmpty is the top of the bucket.
path_stylePath-style addressesendpoint/bucket rather than bucket.endpoint.
access_key_idAccess key IDRequiredCredentialA key that can list the bucket and put, get and delete objects in it.
secret_access_keySecret access keyRequiredCredentialStored encrypted, and never shown again.