s it possible to attach the same existing app volume to backup/cron service in the same Railway project?
avpatel18
HOBBYOP

6 days ago

Is it possible to attach the same existing app volume used by the main app service to a separate backup/cron service in the same Railway project?

I’ve set up a separate service in my Railway project to run scheduled backup jobs, but I’m unable to attach or share the main backend service’s mounted media volume at /app/media with that backup service. Because of that, the backup job can only see image-bundled files, not the live uploaded media, so I can’t back up the real media files.

Solved

1 Replies

Railway
BOT

6 days ago

Volumes cannot be shared between services. Each volume is attached to exactly one service, and there is no way to mount the same volume to multiple services within a project. For your backup use case, you would need to access the files over the network, for example by exposing an API or file-transfer endpoint on your main service that the backup service can call via private networking.


Status changed to Awaiting User Response Railway 6 days ago


Status changed to Solved avpatel18 6 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...