Minio Backup container for PostgreSQL
This container provides a trivially simple means to run pg_dump and fire the results off
to a https://minio.io/ instance. It is intended to be run in conjunction with a https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/
to maintain a frequent backup of your critical data with minimal fuss.
shdocker run --rm --env-file backup.env minback/postgres my_db -h pgserver1
backup.env
MINIO_SERVER=https://play.minio.io/ MINIO_ACCESS_KEY=minio MINIO_SECRET_KEY=miniosecret MINIO_BUCKET=backups
DB_NAME [OPTIONS...] Arguments DB_NAME - The name of the database you wish to backup OPTIONS - Any additional options you wish to pass to mongodump
This container is configured using environment variables, enabling it to easily be started manually or automatically and integrate well with Kubernetes' configuration framework.
MINIO_SERVER=https://play.minio.io/
The Minio server you wish to send backups to.
MINIO_ACCESS_KEY=minio
The Access Key used to connect to your Minio server.
MINIO_SECRET_KEY=miniosecret
The Secret Key used to connect to your Minio server.
MINIO_BUCKET=backups
The Minio bucket you wish to store your backup in.
DATE_FORMAT=+%Y-%m-%dThe date format you would like to use when naming your backup files. Files are named $DB-$DATE.archive.
以下是 minback/postgres 相关的常用 Docker 镜像,适用于 关系型数据库、复杂查询、数据完整性 等不同场景:
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务