Giter Site home page Giter Site logo

icyleaf / backup-postgres-to-minio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from smilelikeshit/backup-postgresql-to-minio

0.0 1.0 0.0 8.25 MB

backup postgresql database automatically and sent to minio s3

Home Page: https://hub.docker.com/r/insignficant/backup-postgresql-to-minio

License: GNU General Public License v3.0

Shell 86.46% Dockerfile 13.54%

backup-postgres-to-minio's Introduction

Backup Postgresql to Minio S3

Supported Versions

  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15

cp .env.example .env

MINIO_ACCESS_KEY=12345678
MINIO_SECRET_KEY=12345678
MINIO_BUCKET=minio
MINIO_SERVER=http://127.0.0.1:9000

docker-compose up -d

version: '3'
services:
  pgbackupminio:
    image: gchr.io/icyleaf/backup-postgres-to-minio
    env_file:
      - .env
    network_mode: host
    container_name: pgbackupminio

Required Envionment Variables

  • MINIO_ACCESS_KEY - Your Minio access key.

  • MINIO_SECRET_KEY - Your Minio access key.

  • MINIO_BUCKET - Your Minio bucket.

  • MINIO_HOST - Your Minio Host

  • POSTGRES_HOST - Hostname of the PostgreSQL database to backup, alternatively this container can be linked to the container with the name postgres.

  • POSTGRES_DATABASE - Name of the PostgreSQL database to backup. (optinal, backup all database to keep it empty)

  • POSTGRES_USER - PostgreSQL user, with priviledges to dump the database.

Optional Enviroment Variables

  • POSTGRES_PASSWORD - Password for the PostgreSQL user, if you are using a database on the same machine this isn't usually needed.
  • POSTGRES_PORT - Port of the PostgreSQL database, uses the default 5432.
  • POSTGRES_EXTRA_OPTS - Extra arguments to pass to the pg_dump command.
  • MINIO_API_VERSION - you can change with S3v4 or S3v2.
  • SCHEDULE - Cron schedule to run periodic backups.

some script from

backup-postgres-to-minio's People

Contributors

icyleaf avatar smilelikeshit avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.