Allowing network access across environments within a single project
tk-o
PROOP

a year ago

Problem

I'd like to avoid egress fees and save time while copying data from one Railway environment to another one within the same Railway project.

Currently, the only option to copy data out of Railway environment to another leads via the Internet. It's slow and incurs unnecessary egress cost.

Solution

Allow creating private connection between environments within the same project.

Context

Let's say I have Project X containing following environments: production, staging, and common.

I'd like to backup my postrgres database in the production env, and have this backup restored in the staging env.

I could stream data directly (i.e. pg_dump <production_env_db> | pg_restore <staging_env_db>) or indirectly (i.e. write pg_dump from the production env into a file on volume in the common env, and then take this file as input for pg_restore in the staging env.

0 Replies

Loading...