hkong
hkong

Reputation: 9062

Is it possible to backup only one of Redis' databases?

I want to have 2 (perhaps more later) databases on Redis with different backup requirements. DB 0 for ephemeral data and DB 1 for durable data. For example, DB 0 contains statistics across multiple players, (e.g., high scores), which I don't mind losing because they are updated constantly anyway, while DB 1 contains each individual player's top 5 scores (which I don't want to lose if the server crashes). I want to backup DB 1 only. Is this possible? I think AOF is what I need, but I don't want to "pollute" it with transactions in DB 0.

Upvotes: 0

Views: 240

Answers (1)

Itamar Haber
Itamar Haber

Reputation: 49932

No, this isn't possible. Redis' numbered/shared databases are a poor man's namespacing and share everything - configuration, server process and backups.

Upvotes: 1

Related Questions