简体   繁体   English

是否可以使用“ restore”命令来还原rdb文件?

[英]Is using 'restore' command to restore rdb file possible?

all 所有
I see the doc in http://redis.io/commands/dump , that the result of dump command 我在http://redis.io/commands/dump中看到该文档,该信息是dump命令的结果

Values are encoded in the same format used by RDB. 值以RDB使用的相同格式编码。

So, is that possible to recovery data from rdb file with restore command? 那么,是否可以使用restore命令从rdb文件恢复数据?

No - the RESTORE command is indeed DUMP 's complement but it only works on a single key. RESTORE命令确实是DUMP的补充,但仅适用于单个键。 An RDB file, on the other hand, is potentially made up of multiple keys and is loaded only when the Redis server starts. 另一方面,RDB文件可能由多个密钥组成,并且仅在Redis服务器启动时才加载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM