Skip to Content
LogiStackDocs
Data

Add an S3 destination for backups

Connect an S3-compatible bucket such as AWS S3, Cloudflare R2, Backblaze B2, Hetzner, MinIO or Wasabi, and test the connection before backup policies use it.

An S3 destination is a bucket that backup policies write to. It holds the endpoint, bucket, region, an optional prefix and a key pair. Any S3-compatible store works. Add one before you create your first backup policy, and prefer a bucket at another provider or region than your server, so a lost server doesn't take its backups with it.

The Backup destinations page, listing R2, Hetzner, B2 and MinIO buckets next to an SFTP NAS and a node folder, each with its location and how many policies use it

Before you start

  • Create the bucket at your provider. LogiStack doesn't create it for you.
  • Create a key pair that reaches only this bucket, with permission to put, get, delete and list objects.
  • Only organization admins can add destinations.

Add a destination

Open Backup destinations

In the sidebar, under Integrations, select Backup destinations, then Add destination.

Pick the provider

In Where should backups go?, under Object storage, pick Amazon S3, Cloudflare R2, Backblaze B2, Hetzner Object Storage, MinIO, Wasabi or S3-compatible. The preset fills in the endpoint, region and addressing. Select Continue.

The Add a backup destination wizard, on the provider step

Describe the bucket

In Bucket, fill in:

  • Endpoint: the full URL, starting with https://.
  • Bucket: 3 to 63 lowercase letters, digits, dots and dashes, such as acme-backups.
  • Region: the bucket's region, or us-east-1 when the store doesn't care.
  • Prefix (optional, default logistack): a folder inside the bucket, so one bucket can serve several LogiStack instances.
  • Path-style addressing: puts the bucket in the path (host/bucket/key) instead of the hostname. MinIO and most self-hosted stores need it.

Paste the keys

In Access keys, paste the Access key ID and the Secret access key. The secret is encrypted at rest and never shown again. The step explains where to create keys for the provider you picked.

Test the bucket

In Test the destination, select Run test. LogiStack writes a small probe object under <bucket>/<prefix>/.logistack-probe-…, reads it back and deletes it. A pass means the keys can put, get and delete: the three things backups, restores and retention do. Nothing is saved until the test passes.

Name and save

In Name and review, keep the suggested Name (such as Cloudflare R2 · acme-backups) or type your own. It's what you pick when setting up a backup policy. Check the summary and select Add destination.

Provider examples

FieldValue
Endpointhttps://s3.eu-central-1.amazonaws.com
Bucketacme-backups
Regioneu-central-1
Path-style addressingOff

Create the keys in IAM: open a user meant only for backups, then Security credentials > Create access key. Give it a policy limited to the bucket:

backup-user-policy.json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": ["s3:PutObject", "s3:GetObject", "s3:DeleteObject"],
      "Resource": "arn:aws:s3:::acme-backups/*"
    },
    {
      "Effect": "Allow",
      "Action": "s3:ListBucket",
      "Resource": "arn:aws:s3:::acme-backups"
    }
  ]
}

For Hetzner, use https://fsn1.your-objectstorage.com (or nbg1, hel1) with the matching region. For Wasabi, use the service URL of the bucket's region, such as https://s3.eu-central-1.wasabisys.com; Wasabi bills deleted objects for 90 days. S3-compatible covers Ceph, Garage, SeaweedFS and any store that signs requests with Signature V4.

Not on S3? A NAS over SFTP or WebDAV, Azure Blob Storage, Google Drive, Backblaze B2's native API and a folder on a node work too: see Other backup destinations.

An object storage service on LogiStack can become a destination in one step with Use for backups. Keep an off-site destination too: backups on the same server don't survive losing it.

Check it worked

The destination shows under Destinations with its provider, its location (s3://<bucket>/<prefix>) and Not used yet. Once a policy writes to it, the row shows Used by 1 policy. Select Run now on a policy and check that a file appears in the bucket under the prefix.

Remove a destination

Select the trash icon on its row, then Remove destination. LogiStack forgets the credentials; backups already in the bucket stay there. A destination still used by a policy can't be removed: move those policies to another destination or delete them first.

Troubleshooting

  • Use the full URL, starting with https://: paste the endpoint with its scheme. Plain http:// works only for a store on a private address, such as a MinIO on your LAN, and only after an instance admin allows private hosts in Settings > General.
  • The test fails with a private address error: the endpoint's name resolves to a private or loopback address. LogiStack checks the address on every request and connects only to the one it checked.
  • Fill in your account ID: replace <account-id> in the R2 endpoint.
  • The test fails with access denied: the key lacks put, get or delete on the bucket, or is scoped to another bucket.
  • The test fails with a DNS or bucket-not-found error on a self-hosted store: turn on Path-style addressing.
  • The test fails with a signature error: check the Region.

On this page