Skip to content

ZERO-Z3 with restic

restic backs up to ZERO-Z3 through its S3 backend. Pass the region name with -o s3.region.

Configure

export AWS_ACCESS_KEY_ID="YOUR_ACCESS_KEY"
export AWS_SECRET_ACCESS_KEY="YOUR_SECRET_KEY"
export RESTIC_REPOSITORY="s3:https://fra.s3.zeroservices.eu/my-bucket"
export RESTIC_PASSWORD="choose-a-strong-passphrase"

Regions: zero-fra1 (fra1.s3.zeroservices.eu), zero-fra2 (fra.s3.zeroservices.eu), zero-eyl1 (eyl1.s3.zeroservices.eu). Keys come from the customer portal.

Use

restic init -o s3.region=zero-fra2
restic backup /path/to/data -o s3.region=zero-fra2
restic snapshots -o s3.region=zero-fra2
restic forget --keep-daily 14 --keep-weekly 8 --prune -o s3.region=zero-fra2

Notes

  • restic writes pack files of several MB, well above the 64 KB minimum object size.
  • restic prune rewrites packs and reads data back; that read counts as egress.
  • Your bucket already exists; it was created with your order. Point restic at a prefix inside it if you keep several repositories: s3:https://…/my-bucket/host-a.