Giter Site home page Giter Site logo

backup's Introduction

backup

0.简介

备份 mysql 工具;可以同时备份多个 mysql 库的小工具;

临时写来用于服务器进行备份;临时使用工具;

主要用于临时写来给多个不同地址的数据库备份sql;

0.0. 你可以用来

你可以在一套环境上备份多个 MySQL 数据库;可以任意设置备份的时间段;

1. 使用过程

1.0. 下载

需要 java 17 环境进行运行;

1.1. 先配置文件 application.yml

application.yml 需要和 jar 文件放在同级目录下;

server:
  port: 9999 # 需要占用端口

file:
  storage:
    directory: /Users/azwcl/Downloads/test/ # 备份的 sql 存储的目录;注意后面一定带上 / 

1.2. 配置 backup.json 文件

backup.json 需要放在 application.yml 中配置的目录下

[
  {
    "host": "服务器 host",
    "port": xxx, # 服务器端口
    "dbName": "数字库名",
    "username": "数据库用户",
    "password": "数据库密码",
    "time": "0, */1 * * * ?" # 定时任务 cron 表达式
  }
]

backup's People

Contributors

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