Telegram bot data base
rooyy1
HOBBYOP

a month 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

a month 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 about 1 month ago


rooyy1
HOBBYOP

a month ago

how to attach a volume to persist it?


Status changed to Awaiting Railway Response Railway about 1 month ago


Status changed to Solved rooyy1 about 1 month ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...