Skip to content
Can Hobby safely drain writers on an existing replica before a final backup?
frankreatre
OP

an hour ago

Does the Hobby plan support draining an already-running replica before a final backup, without replacing it first? Consider a service where both web requests and in-process background jobs can update PostgreSQL and files on the ephemeral filesystem.

We need to block new public/private web, background and operator writes, verify that in-flight file and database work has completed, and retain read-only access to the original filesystem and database for the final export. The write block must hold until routing to the replacement is confirmed. Is there a supported sequence, and what signals confirm each step?

If this is unavailable on Hobby, is there an assisted option, and what prerequisites and costs would apply? Guidance only; please do not change any services or provision resources.

Awaiting User Response

2 Replies

Railway
BOT

an hour ago

Files outside a volume live on the deployment's ephemeral filesystem and don't persist across deployments, and a deployment that exceeds its ephemeral storage limit can be stopped and redeployed. So the original filesystem is only available for export while that same deployment keeps running: avoid redeploys or config changes on the service until your export is finished. While it runs, railway service files download can copy files out of it (see the service reference).

Blocking writes from web requests, background jobs and operators, confirming in-flight work has finished, and holding that block until routing to the replacement is confirmed are behaviours of your own application, so the signals for each step are the ones your app and database expose. Rehearse the whole sequence in a separate test environment first and confirm there that new writes are refused, job work has stopped, file and database exports complete, and the block holds until cutover.

For larger workloads or specific requirements, you can book a call with the Railway team to discuss options.


Status changed to Awaiting User Response Railway • about 1 hour ago


You would mostly need to set up this logic yourself to check that writes are all completed. Unfortunately, that would have to live at the application level.


Status changed to Awaiting Railway Response Railway • 15 minutes ago


Status changed to Awaiting User Response Railway • 15 minutes ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...