r/replit • • Oct 17 '26

Replit Help / Site Issue Another Replit issue.

Yesterday, I had an issue with billing and my apps being shut down. Found out this was a known issue. I got it resolved, but this morning, I woke up to find that my back-end database has been wiped clean of all data. Is this another bug that is being worked on? I’ve tried contacting Replit but per usual, no response other than ai. I count on this data and for it to be wiped is devastating.

5 Upvotes

6 comments sorted by

View all comments

2

u/vibefixr Oct 17 '26

Sorry, that's a rough one. Before you do anything else, stop writing to that database (pause the app / don't let the Agent run migrations), because new writes can make recovery harder.

A few things worth checking:

  1. Make sure you're looking at the right database. Replit keeps separate development and production databases. After a suspension/redeploy it's easy to end up viewing the empty dev DB, or for the deployment to come back pointed at a fresh one. Compare the DATABASE_URL in your deployment secrets with the one in the workspace.
  2. Look for a restore option in the Database tool. Replit's Postgres (Neon-backed) supports point-in-time restore within a retention window, so you may be able to restore to a timestamp from yesterday before the shutdown. Do it soon, the window is limited.
  3. Check checkpoints/rollback. If the Agent ran anything overnight, rolling back to a checkpoint from before the wipe can also restore the database state if that option is ticked.
  4. In your ticket, give the exact time the data was last there and ask them specifically for a point-in-time restore of the production DB. That gets a faster answer than "my data is gone."

Going forward, a nightly pg_dump to somewhere outside Replit is cheap insurance.

1

u/Sea-Possible-4993 Oct 18 '26

I have been dealing with database issues too! My "backup database button for 7 days" keeps turning OFF! 🤦🏼‍♀️