Telegram bot data base
rooyy1
HOBBYOP

13 days ago

I have a Telegram bot deployed on Railway. If I redeploy it, will the bot’s database be erased or will it remain?

Solved

2 Replies

Railway
BOT

13 days ago

It depends on where your database is stored. If your bot uses a separate database service (like PostgreSQL, MySQL, MongoDB, or Redis deployed as its own service), that data is independent of your bot's deployments and will persist across redeploys. If your bot stores data in a file on the local filesystem (like SQLite), that storage is ephemeral and will be erased on each redeploy unless you attach a volume to persist it.


Status changed to Awaiting User Response Railway 13 days ago


rooyy1
HOBBYOP

13 days ago

how to attach a volume to persist it?


Status changed to Awaiting Railway Response Railway 13 days ago


Status changed to Solved rooyy1 13 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...