Giter Club home page Giter Club logo

dumpdb2qiniu's Introduction

DumpDB2Qiniu

这是一个自动备份数据库到七牛云的工具,当前支持所有能使用mysqldump备份的数据库。

使用

dumpdb2qiniu -c config.json

安装

  1. 手动编译
go install github.com/TBXark/dumpdb2qiniu

配置文件

{
  "databases": [
    {
      "host": "localhost",
      "user": "root",
      "password": "....",
      "database": "dbname"
    }
  ], // 需要备份的数据库,支持多个
  "qiniu": {
    "access_key": "-e",
    "secret_key": "",
    "bucket": "sqldump", // 为了保证数据安全,请使用私有空间
    "file_prefix": "backup/serverA/"
  },
  "cron": "" // 需要定时执行的时间,格式为cron表达式
}

dumpdb2qiniu's People

Contributors

tbxark avatar

Watchers

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