Home » Redis Server Migration with Data on another Linux server

Redis Server Migration with Data on another Linux server

by Salman Chawhan
0 comment

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

Leave a Comment

18 − three =

Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?
-
00:00
00:00
Update Required Flash plugin
-
00:00
00:00