Restore from dump.rdb

2,960 views
Skip to first unread message

coliver

unread,
Feb 10, 2012, 3:36:16 PM2/10/12
to Redis DB
Hello,

I'm attempting to restore my redis db from my prod environment down to
my dev box.

Here's what I did:

ran save in prod
copied down the dump.rdb to my dev box
redis-server stop
rm'd the dev dump.rdb
copied the dump.rdb to /var/lib/redis (the dir that redis is using)
redis-server start

I cannot see any of the values in redis cli. What am I doing wrong?
Did I miss something?

Appendonly = no

Thank you

-coliver

Josiah Carlson

unread,
Feb 10, 2012, 4:43:07 PM2/10/12
to redi...@googlegroups.com
Have you checked your logs?

Have you checked your file permissions?

Have you performed an strace to see what it has been trying to do?

- Josiah

> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.
>

Jesse Dubay

unread,
Feb 10, 2012, 4:52:42 PM2/10/12
to redi...@googlegroups.com
Just guessing: when running redis-server, you have to explicitly pass
the /path/to/redis.conf (or supply it via stdin). If you don't, Redis
defaults to looking for dump.rdb in the working directory.

Jesse

On Fri, Feb 10, 2012 at 12:36 PM, coliver <chrisgeo...@gmail.com> wrote:

coliver

unread,
Feb 13, 2012, 11:27:59 AM2/13/12
to Redis DB
Josiah:

-Have you checked your logs?

I turned it to verbose, but it doesn't seem to matter. I don't see
anything weird in the log.

-Have you checked your file permissions?

I'm not sure what they should be.


-Have you performed an strace to see what it has been trying to do?

I did as you suggested but again I'm not sure what I'm looking for...


Jesse:

-you have to explicitly pass the /path/to/redis.conf (or supply it via
stdin)

I did not know this... I tried calling

sudo /etc/init.d/redis-server force-reload /etc/redis/redis.conf

It didn't seem to matter, though.

coliver

unread,
Feb 13, 2012, 11:53:39 AM2/13/12
to redi...@googlegroups.com
As a side note, is there documentation on how to restore from a dump.rdb?  I can't seem to find any.

Jesse Dubay

unread,
Feb 13, 2012, 12:45:19 PM2/13/12
to redi...@googlegroups.com
> I did not know this... I tried calling
>
> sudo /etc/init.d/redis-server force-reload /etc/redis/redis.conf
>
> It didn't seem to matter, though.

I see. If you're running it with an init script, a default
configuration path is provided for you, so that wouldn't be your
problem after all.

Jesse

Reply all
Reply to author
Forward
0 new messages