Coder Social home page Coder Social logo

redis-move's Introduction

redis-move

redis数据迁移脚本 一个简单的redis数据迁移脚本,支持支持DB迁移,通过该脚本可以将一个redis指定DB下的数据迁移至另一个redis制定DB中

Run

你需要一个node.js的运行环境。node.js安装:https://nodejs.org/en/

执行:npm install

修改simple.js的config中的属性。例如:

var config = {
	from:{
		port:6379,
		host:"127.0.0.1",
		password:"your passqord or empty",
		db:0
		},
	to:{
		port:6380,
		host:"127.0.0.1",
		password:"your passqord or empty",
		db:0
	}	
};

开始迁移数据:node index.js 数据多的时候需要很长的一段时间,请耐心等待。执行完成后有数据类型的统计 list 0 set 0 hash 149 string 3 zset 0 ok

redis-move's People

Contributors

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