Sign inSign up

thiagobarradas/redis-migrate

By thiagobarradas

•Updated about 6 years ago

A simple worker to copy Redis values to another Redis filtered and with prefix;

Image
0

3.0K

thiagobarradas/redis-migrate repository overview

Build Status

⁠RedisMigrate

A simple worker to copy Redis values to another Redis filtered and with prefix;

⁠Running with Docker

docker run --name redis-migrate -d \
    -e MaxThreads=1000
    -e OriginConnectionString="localhost:6379,password=RedisAuth,defaultDatabase=0,syncTimeout=2000,connectTimeout=2000,abortConnect=false" \
    -e OriginDatabase=0 \
    -e OriginFilter="*" \
    -e OriginPopulateEnabled=false \
    -e OriginPopulateQuantity=1000 \
    -e OriginPopulatePrefix="some-test:" \
    -e DestinationConnectionString="localhost:6377,password=RedisAuth,defaultDatabase=0,syncTimeout=2000,connectTimeout=2000,abortConnect=false" \
    -e DestinationDatabase=0 \
    -e DestinationKeyPrefix="migrated:" \
    -e DestinationKeyReplaceForEmpty="remove-from-key" \
    -e DestinationReplace=true
    thiagobarradas/redis-migrate:latest

⁠Configuration

Set environment variables to setup RedisMigrate:

Env VarTypeRequiredDescriptione.g.
MaxThreadsintegernoparallel tasks number - min 50100
OriginConnectionStringstringyesorigin redis connectionlocalhost:6379,password=RedisAuth,defaultDatabase=0,syncTimeout=2000,connectTimeout=2000,abortConnect=false
OriginDatabaseintegeryesorigin database number0
OriginFilterstringyesfilter to get keys from origin*
DestinationConnectionStringstringyesorigin redis connectionlocalhost:6377,password=RedisAuth,defaultDatabase=0,syncTimeout=2000,connectTimeout=2000,abortConnect=false
DestinationDatabaseintegeryesorigin database number0
DestinationKeyPrefixstringnoprefix to add into key for destinationmigrated:
DestinationKeyReplaceForEmptystringnostring to remove from keysomething
DestinationReplacebooleannoif true, makes a upsert into destinationtrue
OriginPopulateEnabledboolnoonly for test - after execution, insert some data into originfalse
OriginPopulateQuantitystringnoonly for test - number of entries writed previously1000
OriginPopulatePrefixstringnoonly for test - prefix to apply into test datasome-test:

⁠How can I contribute?

Please, refer to CONTRIBUTING⁠

⁠Found something strange or need a new feature?

Open a new Issue following our issue template ISSUE TEMPLATE⁠

⁠Did you like it? Please, make a donate :)

if you liked this project, please make a contribution and help to keep this and other initiatives, send me some Satochis.

BTC Wallet: 1G535x1rYdMo9CNdTGK3eG6XJddBHdaqfX

1G535x1rYdMo9CNdTGK3eG6XJddBHdaqfX

Tag summary

Content type

Image

Digest

Size

73.3 MB

Last updated

about 6 years ago

docker pull thiagobarradas/redis-migrate