There are 100k keys in my ec2. I want to copy all keys to another ec2 without BGSAVE and SAVE commands. I want to copy all keys with Linux command. Is there any Linux command to do so?
Asked
Active
Viewed 27 times
-1
-
Please don't use Indian words like 'lakh' in here. – James Z Oct 17 '18 at 14:35
2 Answers
1
Hi You can moves your Redis keys from one instance to another by below command
Option One
MIGRATE HOSTNAME PORT "" 0 5000 KEYS key1 key2 key3
Option Second
COPY HOSTNAME PORT "" 0 5000 KEYS key1 key2 key3
Hoping this will help you.

pawansgi92
- 1,065
- 13
- 32