Home » Blog » Redis Server Migration with Data on another Linux server

Redis Server Migration with Data on another Linux server

by Salman Chawhan

Redis Server Migration with Data on another Linux server

Copy all files on main server under /var/lib/redis

Install redis-server on new server
after installation stop the redis service

systemctl status redis-server
systemctl stop redis-server

Past all file under /var/lib/redis on destination server
Before past rename all Old Files
ex: mv appendonly.aof appendonly.aofOLD

after that change all file owner
run the bellow command change file name as per server file name
cd /var/lib/redis

chown redis:redis filename
Ex:
chown redis:redis appendonly.aof

After Start redis-server
systemctl start redis-server

You may also like