node-redis-dump icon indicating copy to clipboard operation
node-redis-dump copied to clipboard

Spamming of "ERR unknown command: 11" when trying to import dump via redis-cli

Open patroza opened this issue 9 years ago • 2 comments

Node v6.2.0

  1. redis-dump -h x -p y > db
  2. cat db | redis-cli -h x -a y

(the same problem occurs if I first go to json, and then --convert)

patroza avatar Jul 01 '16 14:07 patroza

Had the exact same problem. Luckily for me my redis database was very small (~a dozen keys).

I noticed it seemed to have problems parsing newlines (\n) etc. Maybe it's struggling with the same thing for you.

adam-hanna avatar Sep 05 '16 02:09 adam-hanna

Use CRLF line endings (windows-style), then it will work like expected.

smartpunter avatar Sep 17 '16 18:09 smartpunter