Telegram bot data base
rooyy1
HOBBYOP

2 months 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

2 months 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 2 months ago


rooyy1
HOBBYOP

2 months ago

how to attach a volume to persist it?


Status changed to Awaiting Railway Response Railway about 2 months ago


Status changed to Solved rooyy1 about 2 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...