-1

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?

James Z
  • 12,209
  • 10
  • 24
  • 44

2 Answers2

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
0

How about using the MIGRATE command?

Sashi
  • 2,659
  • 5
  • 26
  • 38