am trying to find the doc which can help me to migrate AWS Redis cache to Azure Cache for Redis basic version
- October 8, 2021
- 285 views
- 3 votes
- 3 Answers
-
am trying to find the doc which can help me to migrate AWS Redis cache to Azure Cache for Redis basic version
3
Answers
Hi there after multiple research we found the way to export and import Redis keys for the Azure Redis Cache for Basic tier ,
we have created the Bash script to read the Keys from source and write in destination.
*this script works only for the valid key, please find the script below
#!/bin/bash
while loops
redis-cli -c -h sourcehostname -p 6379 -a accesskey KEYS '*' | while read key; do echo "Copying $key" redis-cli -c -h sourcehostname -p 6379 -a Accesskeys GET $key | while read value; do echo "Copying $value" redis-cli -c -h Targethostname -p 6379 -a Accesskey SET $key $value done echo "Pasting $key" done
Yes! We have this document: Migrate to Azure Cache for Redis | Microsoft Docs
We’ll also have a detailed migration guide coming out soon. Will update the thread with new documentation once it is out.
The option to use import/export is for premium only. The others should work with basic.