Store backup using local volume

Problem to solve

The only mechanism available to store backups are using object storage like AWS S3 (or AWS S3 compatible), Azure Blob Storage or Google Cloud Storage.

In some cases a volume with a shared filesystem can be mounted in each Pod and perfectly used to store the backups.

Proposal

Leverage wal-g ability to store backups in the local filesystem.

Add the entry in the object storage to define the path were the shared volume will be mounted.

kind: SGObjectStorage
spec:
  persistentVolumeClaim:
    claimName: <string> # The name of a PersistentVolumeClaim in the same namespace as the SGObjectStorage.
    readOnly: <boolean> # Will force the ReadOnly setting in VolumeMounts. Default false.
  filesystem:
    path: <string> # The path in the filesystem that will be used to store objects. The user will be responsible to mount the volume to the same filesystem path specified.

Testing

  • [] Check WAL archiving, backup and restore are working as expected.

Acceptance Criteria

  • [] Implementation
  • [] Tests
  • [] Documentation

Links / references