安装
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
配置
-
function = ""
-
-
[redis_writer]
-
cluster = false
-
address = "127.0.0.1:6379" # when cluster is true, address is one of the cluster node
-
username = "" # keep empty if not using ACL
-
password = "" # keep empty if no authentication is required
-
tls = false
-
-
[rdb_reader]
-
filepath = "/tmp/dump.rdb"
-
-
[advanced]
-
#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
阅读(381) | 评论(0) | 转发(0) |