Deploy Postgres Plugin Migration

Migrate from a legacy Postgres plugin to a V2 database service

Deploy Postgres Plugin Migration

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

Required Variables

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

Process

  • Validates that all the variables are provided
  • Validates that the destination Postgres 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 DATABASE_PRIVATE_URL


Template Content

More templates in this category

View Template
RustFS | (Just Updated) S3 Object Store, Public URL and Keys Set
S3-compatible object store, keys and public URL preset, volume kept

SuperSlowSloth
0
View Template
TimescaleDB
A PostgreSQL-based time-series database for analytics on Railway.

Rakit
1
View Template
Garage S3 Storage
Ultra-light S3 server: fast, open-source, plug-and-play.

PROJETOS
8