Skip to content
Backup
rezaezzati62-rose
OP

10 hours ago

Thank you for the explanation.

I understand that backup files stored in the ephemeral container filesystem cannot be recovered after a deployment is removed.

However, my concern is not limited to the backup directory.

My original production SQLite database was located at:

"/data/aira_research.sqlite3"

Before November 27, 2026, at approximately 14:16 UTC, this path was not backed by a persistent volume. When the new volume was attached to "/data", it may have hidden the original database file.

Could you please specifically confirm whether the original SQLite database from the previous deployment filesystem is permanently unrecoverable, or whether Railway has any internal snapshots, retained storage layers, or other recovery options?

I have not modified or deleted the current volume and would like to preserve all remaining data.

Thank you for clarifying.

$20 Bounty

3 Replies

Status changed to Awaiting Railway Response Railway • about 10 hours ago


lazarbukejlovic330

5 hours ago

That's a tough spot — if the database was sitting in the container filesystem without a volume attached, it's almost certainly gone once the deployment was removed, since that storage is wiped with the container. Attaching a volume afterwards wouldn't bring the old file back, it just mounts fresh storage over that path. Your best hope is if Railway support has any internal snapshot, but I wouldn't count on it. For the future, a volume from day one plus a regular backup to external storage is the way to go.


Status changed to Awaiting Railway Response Railway • about 5 hours ago


Railway
BOT

5 hours ago

This thread has been opened as a bounty so the community can help solve it.

Status changed to Open Railway • about 5 hours ago


Files stored in ephemeral environments are not recoverable.


0x5b62656e5d

Files stored in ephemeral environments are not recoverable.

icanceenow

4 hours ago

The moderator’s answer also applies to your original SQLite database. If the previous deployment was removed while its only copy of /data/aira_research.sqlite3 was on temporary storage, Railway has no documented way to restore it. Detaching the new volume won’t reveal the old deployment’s files. A rollback restores the application image and configuration, so it won’t bring back rows the running app added.

I’d leave the current volume attached. The one detail worth checking in deployment history is whether the original instance is still running. If it is, preserve it and export the database from that instance before making changes. If it shows Removed, check for an earlier download, SQL export, or off-site backup. If you find one, open a separate copy and check for a known recent record before restoring anything to production.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...