kvrocks icon indicating copy to clipboard operation
kvrocks copied to clipboard

[NEW]Please support restore command

Open zhklcf opened this issue 4 years ago • 2 comments

Migration tools like redisshake usually use restore command to realize migration from redis to kvrocks。 Please support restore command。

zhklcf avatar Dec 01 '21 03:12 zhklcf

Thanks, I MUST say that it is hard for us to implement redis RESOTRE command, since the restored value is the serialization of redis key value i.e. RDB format , so we need to support parsing all redis types, moreover, the encoding of key value serialization also would change in the future.

I think we shouldn't do this in kvrocks core code. Maybe there is a tool which can change RESTORE value to redis command, or we use other tools?

ShooterIT avatar Dec 01 '21 08:12 ShooterIT

Twemproxy and Codis also have the same issue, and RedisShake supports parsing the restore command to AOF: https://github.com/alibaba/RedisShake/wiki/FAQ#q-does-redisshake-supports-codis-and-twemproxy

git-hulk avatar Dec 01 '21 09:12 git-hulk

restore was added in #1684, will be released in the next version (or try it in the unsable branch)

enjoy-binbin avatar Aug 29 '23 04:08 enjoy-binbin