Back up and move your app safely: a Claude + Supabase + Replit stack
The struggle: You depend on one builder account and fear losing the whole app if it changes or closes.
What you end up with: A dated backup of your code, database and files, a list of accounts and secrets, and a tested way to restore.
An app lives in several places: code, database, stored files and secrets. Claude builds the inventory, Supabase gives you the database copy, Replit checkpoints cover the code history, and you prove a restore works before you need it.
Tools: Claude, Supabase, Replit. Level: Free to start. Time: 2 hours.
Use it if
- You depend on one builder account
- You fear the app and data would be lost if the tool changes
- You may move to another host later
Skip it if
- You have no data yet and can rebuild in a day
- You need a formal disaster recovery plan: hire a professional
The method
Inventory where everything lives (Claude: Chat)
Tell Claude which tools hold your code, data, files and logins. Ask for an inventory table with what is stored, where, and how to copy it out.
Prompt to copy:
List everything my app depends on and how to back each up. My setup: code in [builder], database in [Supabase or other], files in [storage], domain at [registrar], payments in [provider]. Output a table: Item, Where it lives, How to copy it out, Who owns the account, How often. Include secrets and keys as names only. If you are unsure how a tool exports, say 'check the official docs' instead of guessing.
You get: An inventory table.
Tip: Add who else knows the logins. One person is a single point of failure.
Copy the database (Supabase: Backups)
In the Supabase dashboard open Database, then Backups. Daily backups exist on Pro (kept 7 days), Team (14) and Enterprise (up to 30), not on Free. On Free, run the CLI db dump command and store the file outside the tool.
You get: A database copy you control.
Tip: Backups do not include stored files, so copy those separately.
Mark and read your code history (Replit: Checkpoints)
Before any big change, note the latest checkpoint in the Agent tab. It also shows in the Git pane as a commit. For copying your code out of Replit, follow Replit's current docs, since export steps change.
Prompt to copy:
Without changing anything, list the files and folders that make up this app, which environment variable names it needs (names only, no values), and where the database connection is configured. Then tell me what Replit's current docs say about copying the code out, and say so if you are not sure.
You get: A checkpoint and a code copy.
Tip: Checkpoints include the development database, not production.
Write the restore test (Claude: Chat)
Ask Claude for a restore drill you can run on a spare project: restore database, redeploy code, add secrets, test login.
Prompt to copy:
Write a restore drill for my app using this inventory: [paste]. Steps in order, what to check at each step and how long it should take. End with a short 'if the builder disappears tomorrow' plan. Where a step depends on a vendor feature, say 'follow the vendor's current docs'.
You get: A drill to rehearse.
Tip: A backup you have never restored is a guess.
Rehearse on a spare project (Supabase: Project)
Create a second free Supabase project, restore your dump into it, and open a copy of your app against it with fake users. Delete the spare when done.
You get: Proof that a restore works.
Tip: Never point a test copy at your live database.
Where this goes wrong
- Export steps differ by tool, so check each vendor's official docs.
- Store backups where a stolen builder login cannot delete them.
- Backups can hold personal data, so protect them like the live data.
Swap a tool
- Lovable instead of Replit: Lovable syncs code to GitHub, GitLab or Bitbucket.
Sources
More like this
- Fix a broken app without breaking more
- A launch checklist with builder and database checks
- Check who can read your app's data
Updated . Written with AI help and checked by an independent review step, as described in our editorial standards.