How to configure RDB + AOF combined backups

610 views
Skip to first unread message

Matthew Rathbone

unread,
Jul 26, 2017, 3:52:30 PM7/26/17
to Redis DB
Hey all,

Been a big fan of Redis since 2011, and I'm excitedly starting the 4.0.1 upgrade for a bunch of our data.

One question I had was -- is there any documentation / guidance yet on how the new combined RDB / AOF backup scenario works?

More specific questions:
It is not clear to me how I enable this, or what settings it has. Do I just enable both RDB and AOF and it figures it out, or do I need to set a new configuration option?

Does it use the two separate files (dump.rdb and appendonly.aof), or is it a new combined file format?


Thanks for guidance!

Matthew

Itamar Haber

unread,
Jul 26, 2017, 3:54:33 PM7/26/17
to Redis DB
Hello Matthew,

This hasn't changed since forever: just enable both and, unless you change the defaults, it will use these two filenames.

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+unsubscribe@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.



--

Itamar Haber | Chief OSS Education Officer
Redis Labs ~/redis

Mobile: +972 (54) 567 9692
Twitter: @itamarhaber
Skype: itamar.haber

Jan-Erik Rediger

unread,
Jul 26, 2017, 5:33:14 PM7/26/17
to redi...@googlegroups.com
I guess Matthew is referring to the new AOF-with-RDB-preamble.
To enable it you need to set the aof-use-rdb-preamble to yes.

See https://github.com/antirez/redis/blob/4.0/redis.conf#L746-L782

On Wed, Jul 26, 2017 at 10:54:03PM +0300, Itamar Haber wrote:
> Hello Matthew,
>
> This hasn't changed since forever: just enable both and, unless you change
> the defaults, it will use these two filenames.
>
> On Wed, Jul 26, 2017 at 9:56 PM, Matthew Rathbone <mat...@sal.tt> wrote:
>
> > Hey all,
> >
> > Been a big fan of Redis since 2011, and I'm excitedly starting the 4.0.1
> > upgrade for a bunch of our data.
> >
> > One question I had was -- is there any documentation / guidance yet on how
> > the new combined RDB / AOF backup scenario works?
> >
> > More specific questions:
> > It is not clear to me how I enable this, or what settings it has. Do I
> > just enable both RDB and AOF and it figures it out, or do I need to set a
> > new configuration option?
> >
> > Does it use the two separate files (dump.rdb and appendonly.aof), or is it
> > a new combined file format?
> >
> >
> > Thanks for guidance!
> >
> > Matthew
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Redis DB" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to redis-db+u...@googlegroups.com.
> > To post to this group, send email to redi...@googlegroups.com.
> > Visit this group at https://groups.google.com/group/redis-db.
> > For more options, visit https://groups.google.com/d/optout.
> >
>
>
>
> --
>
> *Itamar Haber* | Chief OSS Education Officer
> *Redis <http://www.redislabs.com/>*Labs <http://www.redislabs.com/> ~/redis
>
> Mobile: +972 (54) 567 9692
> Twitter: @itamarhaber <https://twitter.com/itamarhaber>
> Skype: itamar.haber
>
> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.

Itamar Haber

unread,
Jul 26, 2017, 5:35:34 PM7/26/17
to Redis DB, Jan-Erik Rediger
I guess that's a good guess :)


> > To post to this group, send email to redi...@googlegroups.com.
> > Visit this group at https://groups.google.com/group/redis-db.
> > For more options, visit https://groups.google.com/d/optout.
> >
>
>
>
> --
>
> *Itamar Haber* | Chief OSS Education Officer
> *Redis  <http://www.redislabs.com/>*Labs <http://www.redislabs.com/> ~/redis
>
> Mobile: +972 (54) 567 9692
> Twitter: @itamarhaber <https://twitter.com/itamarhaber>
> Skype: itamar.haber
>
> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+unsubscribe@googlegroups.com.

> To post to this group, send email to redi...@googlegroups.com.
> Visit this group at https://groups.google.com/group/redis-db.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+unsubscribe@googlegroups.com.

Matthew Rathbone

unread,
Jul 26, 2017, 5:43:19 PM7/26/17
to Redis DB, jan...@fnordig.de
Ok, I see!

So seems like this modifies the format of the AOF file to include an RDB component. So my existing RDB settings will not affect it. Rather this will happen when the AOF file is compacted.

That sounds correct?

Matthew
Reply all
Reply to author
Forward
0 new messages