#!/bin/bash

cat <<MINIO_CONFIG > /tmp/minio_config.yaml
executablepath: $(which gpbackup_s3_plugin)
options:
  endpoint: http://localhost:9000/
  aws_access_key_id: minioadmin
  aws_secret_access_key: minioadmin
  bucket: cloudberry-backup-s3-test
  folder: test/backup
  backup_max_concurrent_requests: 2
  backup_multipart_chunksize: 5MB
  restore_max_concurrent_requests: 2
  restore_multipart_chunksize: 5MB
MINIO_CONFIG
