Skip to content

Instantly share code, notes, and snippets.

@tron4x
Last active December 17, 2024 07:20
Show Gist options
  • Save tron4x/ebd2eaf760d40a80e25b56475544f0f6 to your computer and use it in GitHub Desktop.
Save tron4x/ebd2eaf760d40a80e25b56475544f0f6 to your computer and use it in GitHub Desktop.
Backup cnpg cluster to s3 bucket
backup:
    barmanObjectStore:
      destinationPath: "s3://<bucket-name>/"
      endpointURL: https://<endpoint-url>/
      s3Credentials:
        accessKeyId:
          name: backup-creds
          key: ACCESS_KEY_ID
        secretAccessKey:
          name: backup-creds
          key: ACCESS_SECRET_KEY
        region:
          name: backup-creds
          key: AWS_DEFAULT_REGION
      wal:
        compression: gzip
        maxParallel: 8
      data:
        compression: bzip2
        immediateCheckpoint: false
        jobs: 4

All creds must be in a kubermetes secret, base64 encoded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment