You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to redi...@googlegroups.com
Hi,
I am trying to restore dump.rdb file into redis using redis-cli --rdb option. But ebery time it creates new dump.rdb (18b) file.
From redis documentation I found '--rdb <filename> Transfer an RDB dump from remote server to local file' .
How can I restore the existing dump.rdb into redis using redis-cli?
Thanks,
Astro
Jan-Erik Rediger
unread,
Dec 3, 2014, 5:34:49 AM12/3/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to redi...@googlegroups.com
--rdb only saves a RDB locally (server -> local file), it doesn't
restore it.
The easiest way is to transfer the RDB file to the server, place it in
the right path (as configured for your redis-server) and restart the
instance.
Redis will pick up the file and load it.
Another option would be to use the redis-rdb-tools[1] to convert the RDB
to a protocol stream and pipe that to 'redis-cli --pipe' to import it.