---
title: "Deploy Redis Migrator"
description: "Migrate data from a source Redis to a target Redis database"
category: "Storage"
url: https://railway.com/deploy/redis-migrator
---

# Deploy Redis Migrator

Migrate data from a source Redis to a target Redis database

**[Deploy Redis Migrator on Railway](https://railway.com/template/redis-migrator)**

- **Creator:** Railway Templates
- **Category:** Storage
- **Total deploys:** 7

## Template content

### Redis Migrator

- **Image:** riotx/riot
- **Start command:** `/bin/sh -c "exec riot replicate --mode live --progress=LOG --debug --info $SOURCE_REDIS_URL $TARGET_REDIS_URL 2>&1"`

## Documentation

This is a service that will migrate data from the source Redis database to the target Redis database.

## Required Variables

- `SOURCE_REDIS_URL`: The Redis URL of the source database.
- `TARGET_REDIS_URL`: The Redis URL of the target database.

## Process

- Uses Redis Riot to replicate the data.

**No data is ever deleted from the source**

## Caveats

- You should stop writing to the source database while the migration is in progress to avoid data not being migrated
- You should manually update your application to point to the target URL once the migration is done

**If you want to avoid egress charges, you should use the private URL of the target database.

## Similar templates

- [Garage S3 Storage](https://railway.com/deploy/garage-s3-storage) — Ultra-light S3 server: fast, open-source, plug-and-play.
- [Redis](https://railway.com/deploy/redis-1) — Self Host Latest Redis with Railway
- [EasyImg](https://railway.com/deploy/easyimg) — Simple self-hostable Nuxt.js personal image hosting system.

Open this page in a browser: https://railway.com/deploy/redis-migrator
