Migrate Redis >7.4 to Valkey >7.2.6

I wanted to migrate my redis containers to valkey as redis is a evil company. Valkey has no official migration guide but i have found this comment on a github issue.

There it mentions librdb.

So what do to do? Follow this steps:

Build librbd's tool rbd-cli

git clone https://github.com/redis/librdb.git
cd librbd
make PREFIX=$PWD/build

Make a dumb

Inside your redis container execute this command:

redis-cli -a "$REDIS_PASSWORD" BGSAVE

Then check with redis-cli -a "$REDIS_PASSWORD" INFO persistence that the variable rdb_bgsave_in_progress is 0.

Copy the dump file in the same folder where you have cloned rbd-cli.

then execute

 ./bin/rdb-cli dump.rdb redis -h "$REDIS_HOST" -p 6379

i have tested it with redis 7.4.1 and valkey 8.1.3

Impressum/Legal Disclosure Datenschutzerklärung/Privacy Policy Firefish