Redis Server Migration with Data on another Linux server

Redis Server Migration

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

Related posts

Creating a Bootable Installation Media for Ubuntu OS

Secure Your Website with Let’s Encrypt and Nginx: A Step-by-Step Guide

Monitoring Calls with FreeSWITCH CLI: A Comprehensive Guide