You should use a combination of scan and migrate commands.
Migrate command can be used to migrate the keys from one redis instance to another, and has the option to copy the individual keys.
So you should scan all the keys and execute migrate command on each so that they are copied to the destination redis.