This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #set connection data accordingly | |
| source_host=localhost | |
| source_port=6379 | |
| source_db=0 | |
| target_host=localhost | |
| target_port=6379 | |
| target_db=1 | |
| #copy all keys without preserving ttl! | |
| redis-cli -h $source_host -p $source_port -n $source_db keys \* | while read key; |
OlderNewer