e.g. if the server migrates from Amazon to Google cloud or Azure,
how will it need to be done? Are there specific guidelines for such use case?
Thanks
Assuming your redis is exposed to outside, you can create a replica(slave) of redis that would replicate redis data in real time. After replication is completed, you can disconnect and turn the replica as primary (master).
Reference: https://redis.io/topics/replication
Replication will definitely work and may be easiest, another method for migrating Redis data is to take a snapshot of the data held on your source instance with either save or bgsave. Both of these commands export the snapshot to an rdb file, which you would then transfer to the target server.