All Templates / Storage

Redis Plugin Migration

Redis Plugin Migration

Migrate from a legacy Redis plugin to a V2 database service

Deploy Redis Plugin Migration

redis migration

railwayapp-templates/redis-plugin-migration:latest

Just deployed

Service that will migrate data from a legacy Redis plugin to a V2 database service.

Required Variables

  • PLUGIN_URL: The Redis URL of the legacy plugin. This is used as the source database.
  • NEW_URL: The Redis URL of the V2 database service. This is used as the destination.

Process

  • Validates that all the variables are provided
  • Validates that the destination Redis database is empty
  • Dumps all the data from the source database
  • Restores all the data from the destination

No data is ever deleted from the plugin. You should delete the plugin manually after confirming that the migration was successful

View the migration script here

Caveats

  • You should manually update your application to point to the new V2 database service
  • You should stop writing to the Redis plugin while the migration is in progress to avoid data not being migrated

If you want to avoid egress charges, you should use the new database service REDIS_PRIVATE_URL


Template Content

Deploy Now

Details

Railway Templates

Created on Nov 3, 2023

4 total projects

0 active projects

Storage



More templates in this category

View Template
ReadySet

ReadySet

A lightweight caching engine for Postgres


Milo

View Template
EdgeDB

EdgeDB

EdgeDB template based on their Docker deployment guide


Ajit Krishna

View Template
Apache Kvrocks

Apache Kvrocks

A drop-in replacement for Redis to store data on a volume.


Bram