Sign inSign up

gitiserver/db-backup

By gitiserver

•Updated about 5 years ago

Image that backup database continuously

Image
0

434

gitiserver/db-backup repository overview

⁠Database Backuper docker image

‌Backup Databases Regularly. Works for mongodb, postgresql, mysql databases.

⁠Enviroments

VariableDescription
DURATIONLinux sleep time format
DRIVERType of your database. mongodb or postgresql or mysql
DB_HOSTHostname or IP address of database
DB_PORTDefault gateway of local network
DB_DATABASEDatabase name
DB_USERNAMEUsename of database
DB_PASSWORDPassword of db user
COUNTNumber of last backup that must be saved to volume. if number become longer than this value the first created backup file will be removed
MDAUTHDBAuthentication Database just use for mongodb

⁠Sample Docker-Compose file

version '3.1'

services:

  backuper:
    image: gitiserver/db-backup:2.2
    environment:
      DURATION: 1d
      DRIVER: postgresql
      DB_HOST: postgres
      DB_PORT: 5432
      DB_DATABASE: foo
      DB_USERNAME: bar
      DB_PASSWORD: changeme
      COUNT: 5
    volumes:
      - "backups:/var/scripts/backup/backups"

  db:
    image: postgres 
    environment:
      POSTGRES_DB: foo
      POSTGRES_USER: bar
      POSTGRES_PASSWORD: changeme

volumes:
  backups:

Tag summary

Content type

Image

Digest

Size

47.2 MB

Last updated

about 5 years ago

docker pull gitiserver/db-backup:2.3