Object Storage

StackGres stores backups on object storage buckets. Currently supported are S3, GCS, Azure Blob and S3-compatible APIs. You will need a bucket and user credentials to access the bucket, create paths and read and write to it.

You should refer to the documentation of the respective providers on how to configure and provide appropriate credentials for your preferred type of object storage. For convenience, sample commands are contained within this section on how to create buckets and credentials for some of the above object storage providers.

Providers:

  • AWS S3

    Details about the object storage set up using AWS S3.

  • DigitalOcean

    Go the API page and create a spaces key. You will also need to have installed the s3Cmd installed. Once installed, configure it following the instructions in the oficial docs. Create the bucket: export DO_SPACES_BACKUP_BUCKET=stackgres-tutorial s3cmd mb s3://${DO_SPACES_BACKUP_BUCKET}

Alternatively, you may consider using MinIO, which works as an S3-compatible API for StackGres, and allows to run object storage locally (useful for bare-metal instances).