Coder Social home page Coder Social logo

mysql-backup's Introduction

Mysql backup s3

Description

Easily back up from cloudSQL or any mysql instance to AWS S3.

Variable Description
MYSQL_HOST Mysql host
MYSQL_PORT Mysql port
MYSQL_DATABASE Mysql target databases.
Space-separated if more than one db,
e.g. MYSQL_DATABASE="db-1 db-2 db3".
If empty or not defined - will try
to dump all databases by using
mysqldump --all-databases flag
MYSQL_USER Mysql user
MYSQL_PASSWORD Mysql password
AWS_ACCESS_KEY_ID AWS S3 accessKeyId
AWS_SECRET_ACCESS_KEY AWS S3 secretAccessKey
AWS_S3_FILE_PREFIX Prefix to generate AWS s3 file name
AWS_S3_BUCKET Target S3 bucket
AWS_ENDPOINT_URL Override S3 URL with the given URL
GOOGLE_APPLICATION_CREDENTIALS GCP json credentials file path
You can mount this file as container
volume
GCP_GCS_FILE_PREFIX  Prefix to generate GCP gcs file name
GCP_GCS_BUCKET Target GCS bucket
docker run -e MYSQL_HOST=mysql -e MYSQL_PORT=3306 -e MYSQL_USER=user -e MYSQL_PASSWORD=pwd -e MYSQL_DATABASE=mydb -e AWS_S3_FILE_PREFIX=s3prefix -e AWS_S3_BUCKET=mybucket --rm softonic./mysql-backup-s3

mysql-backup's People

Contributors

docent-net avatar juanmancebo avatar rccrdpccl avatar santinoncs avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mysql-backup's Issues

Proposal: Add support to another s3 solutions

Reason or Problem

Docker image doesn't support to set the --endpoint-url parameter, so it is not possible to use it with a non aws s3 solution.

Proposal or Solution

Add support to set the --endpoint-url parameter to override command's default URL with the given URL.

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.