this post was submitted on 26 Nov 2023
2 points (100.0% liked)

Self-Hosted Main

515 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS
 

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?

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 11 months ago

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

[–] [email protected] 1 points 11 months ago
  • container stop redis -t 120
  • cp -R --reflink /volumes/redis /backup/redis
  • container pull redis:7
  • container start redis

Profit

[–] [email protected] 1 points 11 months ago

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