GithubHelp home page GithubHelp logo

fixedbit / mysql-buckup Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vmpartner/mysql-buckup

0.0 0.0 0.0 13 KB

Automatic backup mysql db to ftp server. Light image and simple use. ๐ŸŒ‚

Shell 64.59% Dockerfile 35.41%

mysql-buckup's Introduction

Cron MySQL backup

Automatic cron backup MySQL DB to remote server by RCLONE with simple settings ๐ŸŒ‚

Description

This image making automatic backup from any mysql host to any server that support RCLONE util.

Usage

You can use mysql-backup by docker-compose:

version: '2'

services:
    mysql-backup:
        image: vmpartner/mysql-buckup:v2.0.4 # Find latest image version on release page
        links:
            - mysql:mysql
        depends_on:
            - mysql
        environment:
            MYSQL_HOST: mysql
            MYSQL_USER: my_db_user
            MYSQL_PASSWORD: my_db_password
            MYSQL_DATABASE: my_db_name
            SCHEDULE: "0 */6 * * *"
            RCLONE_CONFIG_SELECTEL_TYPE: "swift"
            RCLONE_CONFIG_SELECTEL_ENV_AUTH: "false"
            RCLONE_CONFIG_SELECTEL_USER: "my_user"
            RCLONE_CONFIG_SELECTEL_KEY: "my_password"
            RCLONE_CONFIG_SELECTEL_AUTH: "https://auth.selcdn.ru/v1.0"
            RCLONE_CONFIG_SELECTEL_ENDPOINT_TYPE: "public"
            RCLONE_DEST: "selectel:my_container/my_math"
            CHECK_URL: "https://hc-ping.com/my_check_token" # Example https://healthchecks.io
        restart: unless-stopped

Used https://rclone.org/ for rsync to cloud

You need set MYSQL, RCLONE details and periodic task SCHEDULE in cron format. If you don't know cron, please read more at https://en.wikipedia.org/wiki/Cron

mysql-buckup's People

Contributors

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