I have a server with Ubuntu 22.04 and comes with Redis 6.0.

The Redis server is running in production.

Is it possible to upgrade Redis from v6 to v7 in-place on Ubuntu 22.04? Or I need to create a new server?

all 3 comments

sorted by: hot top controversial new old
[–] [B] 1 point 2 years ago

I'm not sure what your conf is, but on a one node redis server, direct upgrade is possible.

  • source
  • [–] [B] 1 point 2 years ago
    • container stop redis -t 120
    • cp -R --reflink /volumes/redis /backup/redis
    • container pull redis:7
    • container start redis

    Profit

  • source
  • [–] 1 point 2 years ago

    Use docker. Or compile redis yourself if the small overhead of docker would be too much (though that's unlikely in this case).

  • source