I'm reading the Redis documentation on persistence here - https://redis.io/topics/persistence - and am wondering what the acronyms AOF and RDB stand for. Thanks! :)
Asked
Active
Viewed 2.0k times
2 Answers
121
AOF
stands for Append Only File. It's the change-log style persistent format.
RDB
is for Redis Database File. It's the snapshot style persistence format.

Tague Griffith
- 3,963
- 2
- 20
- 24
-
2By default Redis saves snapshots of the dataset (`RDB`) on disk, in a binary file called _dump.rdb_. – themefield Aug 21 '19 at 16:17
-
it would be great if you also mention the difference between both.(like what is change-log style vs snapshot style) – AATHITH RAJENDRAN Sep 22 '22 at 07:36
64
I would like to make an update @Tague's answer (for RDB) and also adding a basic info for each.
Both of these are options if one has to choose persistence for Redis data.
RDB
is for Redis Database Backup file.
RDB file is a dump of all user data stored in an internal, compressed serialization format at a particular timestamp which is used for point-in-time recovery (recovery from a timestamp).
AOF
stands for Append Only File.
AOF is actually a persistence technique in which an RDB file is generated once and all the data is appended to it as it comes.

Teoman shipahi
- 47,454
- 15
- 134
- 158

swayamraina
- 2,958
- 26
- 28