Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION] Can AOF refer to RDB file created by RDB mechanism ? #13228

Open
jureaky opened this issue Apr 19, 2024 · 0 comments
Open

[QUESTION] Can AOF refer to RDB file created by RDB mechanism ? #13228

jureaky opened this issue Apr 19, 2024 · 0 comments

Comments

@jureaky
Copy link

jureaky commented Apr 19, 2024

Hello,

The official document discourages using AOF alone for backup & restore.

The document says one of benefits of using both RDB and AOF mechanisms is faster restarts.

However, AOF with aof-preamble is already creating & using rdb file as AOF base, so I think using AOF alone can make the same effect of using RDB mechanism.

So my question is, when both RDB and AOF are enabled, can AOF restore based on the latest rdb file of dump.rdb created by RDB mechanism or appendonly.aof.*.base.rdb created by AOF mechanism ?

For example, AOF rewrites happened 3 hours ago, so base.rdb file is created at that time, and RDB replaced dump.rdb file 5 minutes ago. Then what I can expect when restarting is dumping 5-min aged dump.rdb file to the memory and executing commands in incr.aof file from the moment dump.rdb is written ?

If that's not the case, I don't think using both RDB and AOF at the same time adds any benefits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant