Coder Social home page Coder Social logo

mysql-bk-s3-ftp's Introduction

Mysql Bakup Aws S3 & FTP Server

Imagem para geração do dump com envio para Aws S3 & FTP Server

Repositorio & Registry

Github DockerHub

Exemplos

docker run --name bk \
    -e MYSQL_HOST=localhost \
    -e MYSQL_PORT=3306 \
    -e MYSQL_USER=root \
    -e MYSQL_PASS=root \
    -e MYSQLDUMP_DATABASE=test \
    -e MYSQLDUMP_OPTIONS="--default-character-set=utf8 --single-transaction=TRUE" \
    -e S3_ACCESS_KEY_ID="" \
    -e S3_SECRET_ACCESS_KEY="" \
    -e S3_BUCKET="s3-bucket-aws" \
    -e S3_PREFIX=backup \
    -e S3_REGION="us-east-1" \
    -e FTP_USER=root \
    -e FTP_PASS=root \
    -e FTP_HOST=localhost:30000 \
    -e FTP_PATH=backup \
    -e FTP_OPTIONS="--ftp-ssl" \
    deividdy/mysql-bk-s3-ftp:latest

Enviromment

Variaveis de Ambiente necessarias

  • MYSQL_HOST: host mysql

  • MYSQL_PORT: port mysql

  • MYSQL_USER: user mysql

  • MYSQL_PASS: password mysql

  • MYSQLDUMP_DATABASE: mysql database

  • MYSQLDUMP_OPTIONS: mysql custom paramters

  • S3_ACCESS_KEY_ID: access key id S3

  • S3_SECRET_ACCESS_KEY: access key S3

  • S3_BUCKET: bucket s3

  • S3_PREFIX: path S3 bucket

  • S3_REGION: region S3 bucket

  • S3_FILE_NAME: file name in s3

  • FTP_USER: user ftp

  • FTP_PASS: password ftp

  • FTP_HOST: host ftp

  • FTP_PATH: path ftp

  • FTP_FILE_NAME: file name in ftp

  • FTP_OPTIONS: custon ftp arguments [ex: --ftp-ssl]

Comandos Uteis

  • Gerando uma nova versão da Imagem:
docker tag <IMAGE> deividdy/mysql-bk-s3-ftp:<VERSION>
push deividdy/mysql-bk-s3-ftp:<VERSION>

docker build -t deividdy/mysql-bk-s3-ftp:latest . --no-cache
docker push deividdy/mysql-bk-s3-ftp:latest

mysql-bk-s3-ftp's People

Contributors

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