Coder Social home page Coder Social logo

francoborrelli / mysql-backup-docker Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 11 KB

Backup your mysql database and upload it to S3

License: MIT License

Dockerfile 30.61% Shell 69.39%
backup backup-database backup-docker backup-script mariadb mariadb-backup mysql mysql-backup mysql-backup-s3 mysql-docker

mysql-backup-docker's Introduction

mysql-backup-docker

MySQL MariaDB Docker AWS GitHub Actions GitLab CI

A background backup utility for MySQL and Mariadb. It allows uploading backups to AWS S3.

๐Ÿณ Docker compose example

version: '3'

services:
  db:
    image: mariadb:latest
    restart: always
    environment:
      MYSQL_DATABASE: database
      MYSQL_USER: test
      MYSQL_PASSWORD: test-pwd

  backup:
    image: ghcr.io/francoborrelli/mysql-backup-docker:master
    restart: always
    environment:
      MYSQL_DATABASE: database
      MYSQL_HOST: db
      MYSQL_PORT: 3306
      MYSQL_PASSWORD: test-pwd
      MYSQL_USER: test
      AWS_ACCESS_KEY_ID: xxxxxxxx
      AWS_SECRET_ACCESS_KEY: xxxxxxxx
      BUCKET: bucket
      PREFIX: db
      MAIL_FROM: [email protected]
      MAIL_USER: [email protected]
      MAIL_HOST: mail.example.com
      MAIL_PORT: 587
      MAIL_PASSWORD: mail_pass
      MAIL_TO: [email protected]
    volumes:
      - database_backup:/backups

volumes:
  database_backup:
    driver: local

mysql-backup-docker's People

Contributors

francoborrelli 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.