tporadowski / redis

Native port of Redis for Windows. Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs. This repository contains unofficial port of Redis to Windows.
http://redis.io
Other
8.88k stars 1.09k forks source link

How to upgrade without loosing db #120

Closed diplopito closed 2 years ago

diplopito commented 2 years ago

Hi Tomasz,

Thanks again for your great work. Question: Which is the best way to upgrade without loosing the Redis db?

Thanks in advance!

tporadowski commented 2 years ago

Have you had such a problem? As far as I know there is no special need to do anything here (apart from recommended backup like in any other database) - the upgrade is just stopping the process, replacing binaries, and starting it again - thus reading the database again from RDB/AOF. This could probably be different if there was a breaking change in RDB/AOF formats, but this case is likely covered in some Redis guide.

diplopito commented 2 years ago

It worked flawlessly: I haven't done an upgrade in a while and I forgot how simple it is, thanks again!