Giter Club home page Giter Club logo

redissyncer-cli-rs's Introduction

redissyncer-cli-rs

中文

redissyncer command line interface for migrate task。

Build

build document

Function and usage

  • redissyncer-cli-rs supports command line mode and interactive mode, "redissyncer-cli -i" enters interactive mode
  • This client program is used by the redissyncer-server client program to create, start, stop, and monitor redis synchronization tasks. Before using this client, please ensure that the server program is running normally

Operation guide

  • Generate default configuration file
redissyncer-cli-rs config gendefault
mv config_default.yml config.yml
  • Enter interactive mode
redissyncer-cli-rs -i
  • Configure the redissyncer-server address
redissyncer-cli-rs> server setting http://127.0.0.1:8080
  • login
redissyncer-cli-rs> login <username> <password>

redissyncer-server Default username and password: admin 123456

  • Create task

    Create a task from a json file createtask.json file

    {
    "dbNum": {
      "1": "1"
    },
    "sourcePassword": "xxxxxx",
    "sourceRedisAddress": "10.0.1.100:6379",
    "targetRedisAddress": "192.168.0.100:6379",
    "targetPassword": "xxxxxx",
    "targetRedisVersion": 4,
    "taskName": "testtask",
    "autostart": true,
    "afresh": true,
    "batchSize": 100
    }
    
    redissyncer-cli-rs> task create source ./createtask.json;

For more task modes, please refer to Task Template

  • List task information

    • List all tasks

      redissyncer-cli-rs> task list all
    • View task status by task id

      redissyncer-cli-rs> task list bytaskid 690DEF6222E34443884033B860CE01EC
    • View task status by task name

      redissyncer-cli-rs> task list bynames $taskname
  • Start task

    redissyncer-cli-rs> task start 690DEF6222E34443884033B860CE01EC
  • Stop task

    redissyncer-cli-rs> task stop 690DEF6222E34443884033B860CE01EC
  • Delete task by task ID

    redissyncer-cli-rs> task remove 690DEF6222E34443884033B860CE01EC

redissyncer-cli-rs's People

Contributors

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