yannh / redis-dump-go

Backup & Restore your Redis server - FAST
MIT License
280 stars 58 forks source link

Cannot dump data with null values to other redis nodes #44

Closed moluzhui closed 10 months ago

moluzhui commented 1 year ago

When I dumped the data from one node and dumped it to other nodes, I found that the dumping of data with null value failed with the following error

using -output commands

ERR wrong number of arguments for 'set' command

The format of this type of data in the dump file is similar to the following

SET keyofnovalue 

It seems to work if I put it in double quote

SET keyofnovalue ""

But I'm not sure if it can be solved by double quotes for other types of data as well.

Is it possible to put double quotes for all types of data value if applicable

yannh commented 1 year ago

Interesting thanks for the report! 🙇‍♂️