Redis Server Migration with Data on another Linux server

Redis-1

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

How to Install ISPConfig with Nginx Web Server on Ubuntu 24.04

Understanding Linux File Systems A Comprehensive Guide

20 Linux Administration Tips and Tricks to Help You Excel in a DevOps Career