Chinaunix首页 | 论坛 | 博客
  • 博客访问: 7404490
  • 博文数量: 1756
  • 博客积分: 18684
  • 博客等级: 上将
  • 技术积分: 16232
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-02 10:28
个人简介

啥也没写

文章分类

全部博文(1756)

文章存档

2024年(2)

2023年(44)

2022年(39)

2021年(46)

2020年(43)

2019年(27)

2018年(44)

2017年(50)

2016年(47)

2015年(15)

2014年(21)

2013年(43)

2012年(143)

2011年(228)

2010年(263)

2009年(384)

2008年(246)

2007年(30)

2006年(38)

2005年(2)

2004年(1)

分类: 系统运维

2023-10-23 13:39:29

安装
wget https ://github .com/tair-o pensource/RedisShake/releases/download/v4.0.2/redis-shake-linux-amd64.tar.gz
tar -zxvf redis-shake-linux-amd64.tar.gz

配置

点击(此处)折叠或打开

  1. function = ""

  2. [redis_writer]
  3. cluster = false
  4. address = "127.0.0.1:6379" # when cluster is true, address is one of the cluster node
  5. username = "" # keep empty if not using ACL
  6. password = "" # keep empty if no authentication is required
  7. tls = false

  8. [rdb_reader]
  9. filepath = "/tmp/dump.rdb"

  10. [advanced]
  11. #rdb_restore_command_behavior = "rewrite"

同步:
# ./redis-shake ./1.toml   
2023-10-23 13:36:41 INF load config from file: ./1.toml
2023-10-23 13:36:41 INF log_level: [info], log_file: [/root/src/redis-shake/data/shake.log]
2023-10-23 13:36:41 INF changed work dir to [/root/src/redis-shake/data]
2023-10-23 13:36:41 INF GOMAXPROCS defaults to the value of runtime.NumCPU [4]
2023-10-23 13:36:41 INF not set pprof port
2023-10-23 13:36:41 INF no function script
2023-10-23 13:36:41 INF create RdbReader: /tmp/dump.rdb
2023-10-23 13:36:41 INF create RedisStandaloneWriter: 127.0.0.1:6379
2023-10-23 13:36:41 INF status information:
2023-10-23 13:36:41 INF status information: watch -n 0.3 'curl -s | python -m json.tool'
2023-10-23 13:36:41 INF start syncing...
2023-10-23 13:36:41 INF [rdb_reader] start read
2023-10-23 13:36:41 INF [rdb_reader] rdb file parse done
2023-10-23 13:36:41 INF all done
阅读(245) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~