redis-shake

下载

    https://github.com/alibaba/RedisShake/releases

配置

    source.type = standalone
    id = redis-shake
    source.address= r-m5efee2d4c967374746.redis.rds.aliyuncs.com:6379
    source.password_raw=ysnows:Quansu@#
    source.auth_type = auth
    target.rdb.output = local_dump #导出的文件路径
    filter.db.whitelist = 8;9
    
    source.rdb.input = hins6125699_data_20191202050130.rdb           #要恢复的文件路径
    target.address=r-m5efee2d4c967374746.redis.rds.aliyuncs.com:6379
    target.password_raw =ZrppU9IPpMY
    target.auth_type = auth
    target.db =10 # 恢复到指定的库
    # 当源目的有重复key,是否进行覆写
    rewrite = true

导出备份

    ./redis-shake.linux -type=dump -conf=redis-shake.conf

恢复备份

    ./redis-shake.linux -type=restore -conf=redis-shake.conf
参考: https://segmentfault.com/a/1190000019549903?utm_source=tag-newest