Restore backup from rdb but with appendonly=yes

792 views
Skip to first unread message

Nike

unread,
Feb 22, 2011, 6:39:33 AM2/22/11
to Redis DB
Hi!

I have redis configured with appendonly=yes. And I have both files in
place - rdb and aof. For my task I need to restore this data on
another redis instance with the same config, but aof file is too large
(yes, I used BGREWRITEAOF, but it's still too large). When I copy the
rdb file and start the server it truncates the file and I have empty
database.
Is there any way to keep appendonly=yes but restore my data from rdb
file?

Thank you for your help

Salvatore Sanfilippo

unread,
Feb 22, 2011, 6:41:47 AM2/22/11
to redi...@googlegroups.com, Nike
Hello Nike, please check this, latest section:

http://redis.io/topics/persistence

Cheers,
Salvatore

> --
> 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.
>
>

--
Salvatore 'antirez' Sanfilippo
open source developer - VMware

http://invece.org
"We are what we repeatedly do. Excellence, therefore, is not an act,
but a habit." -- Aristotele

Nike

unread,
Feb 22, 2011, 6:59:29 AM2/22/11
to Redis DB
Thank you very much!

On Feb 22, 1:41 pm, Salvatore Sanfilippo <anti...@gmail.com> wrote:
> Hello Nike, please check this, latest section:
>
> http://redis.io/topics/persistence
>
> Cheers,
> Salvatore
>
>
>
>
>
>
>
>
>
> On Tue, Feb 22, 2011 at 12:39 PM, Nike <nike.gurin....@gmail.com> wrote:
> > Hi!
>
> > I have redis configured with appendonly=yes. And I have both files in
> > place - rdb and aof. For my task I need to restore this data on
> > another redis instance with the same config, but aof file is too large
> > (yes, I used BGREWRITEAOF, but it's still too large). When I copy the
> > rdb file and start the server it truncates the file and I have empty
> > database.
> > Is there any way to keep appendonly=yes but restore my data from rdb
> > file?
>
> > Thank you for your help
>
> > --
> > 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 athttp://groups.google.com/group/redis-db?hl=en.
Reply all
Reply to author
Forward
0 new messages