Can I disable rdb when aof enabled?

946 views
Skip to first unread message

shaofengniu

unread,
Jan 5, 2012, 2:21:51 AM1/5/12
to Redis DB
Hi,
Can I just disable the rdb dump when the aof is enabled?
The dump.rdb file seems to be only needed when syncing a slave with
the master. And I think the aof is more reliable than the rdp file.

Thanks

Salvatore Sanfilippo

unread,
Jan 5, 2012, 6:07:51 AM1/5/12
to redi...@googlegroups.com
Hello,

You can easily disable RDB persistence removing the "save" statements
from the redis.conf file.
However it is generally not a good idea IMHO, you should take RDB
persistence enabled as well since it is good to have single-file
compact persistence that you can use to do backup, for disaster
recovery transferring this file out of your data center, and so forth.

A good plan involves limiting RDB dumps to 1 every hour, and use this
hourly dump of the DB for backups and other usages.

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

Shaofeng Niu

unread,
Jan 5, 2012, 7:39:17 AM1/5/12
to redi...@googlegroups.com
Thanks for your reply.
I agree with you that limiting RDB dump frequency to about 1 hour when AOF enabled is a good idea.
This may help reduce some "not so useful" background dumps.

Thanks again. :)
Shaofeng Niu,
Computer Science & Technology Dept.
Tsinghua University,
Beijing, 100084, China


Reply all
Reply to author
Forward
0 new messages