Compatibility of dump.rdb across versions

1,042 views
Skip to first unread message

Geoffrey Hoffman

unread,
Apr 24, 2013, 1:39:37 PM4/24/13
to redi...@googlegroups.com
I'm running Redis 2.6.6 on my laptop; our dev server is running 2.6.8 and the latest download as I write this is 2.6.12.

Is dump.rdb compatible across these (minor) versions? Forward and backward?

Just wanted to check before I try to find older source downloads.

Cheers-

Geoff

Josiah Carlson

unread,
Apr 24, 2013, 4:10:42 PM4/24/13
to redi...@googlegroups.com
Later Redis revisions should be able to read earlier dumps.

I can't remember if there were any breaking changes that would make 2.6.8 dumps not work in 2.6.6, but you should probably check the release notes and/or test before relying on the behavior.

 - Josiah


--
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 http://groups.google.com/group/redis-db?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Sripathi Krishnan

unread,
Apr 25, 2013, 3:39:09 AM4/25/13
to redi...@googlegroups.com
I maintain a history of dump.rdb versions over here - 
https://github.com/sripathikrishnan/redis-rdb-tools/blob/master/docs/RDB_Version_History.textile

The current version of the dump file is 6. This was introduced before 2.6 was officially released. After that, there hasn't been any change to the dump file format. 

In short, a 2.6.8 and 2.6.6 dump are identical. 


--Sri

phpguru

unread,
Apr 25, 2013, 12:43:34 PM4/25/13
to redi...@googlegroups.com
Well, the fun never ends, does it? I've just discovered that my client's IT team has a pretty strict policy of using the approved Debian dpkg versions (Redis 1.2.4?!) but they're willing to use 2.4.14 from wheezy, but not 2.6.7 from Sid. Naturally, I built their app on Redis 2.6, which leads to my follow up question:

Is there any way to take a dump.rdb from 2.6.x and back-port it to 2.4.x ? What about an AOF? I have only about 20mb of data, and nothing in my code requires any feature added since 2.6.0, only that I happen to be using 2.6 on my development server. 

Cheers -

Sripathi Krishnan

unread,
Apr 25, 2013, 1:16:12 PM4/25/13
to redi...@googlegroups.com
>> Is there any way to take a dump.rdb from 2.6.x and back-port it to 2.4.x?

Go back all the way to version 3 of the dump file and you should be good.

--Sri


--

phpguru

unread,
Apr 25, 2013, 1:42:19 PM4/25/13
to redi...@googlegroups.com

Thanks very much for this link and info. 

Salvatore Sanfilippo

unread,
Apr 26, 2013, 4:55:27 AM4/26/13
to Redis DB
On Thu, Apr 25, 2013 at 7:16 PM, Sripathi Krishnan
<sripathi...@gmail.com> wrote:

> Sure, there is. Read
> https://github.com/sripathikrishnan/redis-rdb-tools/blob/master/docs/RDB_Version_History.textile

Awesome work! Thank you


--
Salvatore 'antirez' Sanfilippo
open source developer - VMware
http://invece.org

Beauty is more important in computing than anywhere else in technology
because software is so complicated. Beauty is the ultimate defence
against complexity.
— David Gelernter
Reply all
Reply to author
Forward
0 new messages