Template Request: Database Migration

I often need to copy data from 1 database to another for different use cases. I do it locally which takes a lot of time. It'll be very helpful if someone can create template to migrate data of postgres and mongodb within railway network (Least possible resource usage/cost and fastest way).

Solved$10 Bounty

Pinned Solution

2 months ago

I've created both templates, very easy to setup. Just reference the private url variable & database of source and destination and deploy. By using private urls(in same project, for different project use one private and one public), you'll get zero egress/ingress cost and after migration script completes, so you can delete or make it sleep.

mongo-migration-railway

railway-postgres-migration

3 Replies

Railway
BOT

2 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open Railway about 2 months ago


2 months ago

I made a Postgres migrator template a while back. You can take a look and see if it works for you.

https://railway.com/deploy/postgres-migrator


2 months ago

I've created both templates, very easy to setup. Just reference the private url variable & database of source and destination and deploy. By using private urls(in same project, for different project use one private and one public), you'll get zero egress/ingress cost and after migration script completes, so you can delete or make it sleep.

mongo-migration-railway

railway-postgres-migration


bilalnawaz072

I've created both templates, very easy to setup. Just reference the private url variable & database of source and destination and deploy. By using private urls(in same project, for different project use one private and one public), you'll get zero egress/ingress cost and after migration script completes, so you can delete or make it sleep. [mongo-migration-railway](https://railway.com/deploy/mongo-migration-railway?referralCode=JsjF9v&utm%5Fmedium=integration&utm%5Fsource=template&utm%5Fcampaign=generic) [railway-postgres-migration](https://railway.com/deploy/railway-postgres-migration?referralCode=JsjF9v&utm%5Fmedium=integration&utm%5Fsource=template&utm%5Fcampaign=generic)

Thanks!


Status changed to Solved brody about 2 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...