Free

How to restore a project, data and files after an error

Restore a project backup in a separate folder. Verify code, data, attachments and settings, and record what was recovered before replacing anything live.

Instructions

Restore the backup in a separate folder and verify code, data and attachments individually. A page opening does not show whether its records and files were recovered. Start with the local recovery exercise, then check your own backup.

Step 1. What should go into the copy

Project part What to verify after recovery
Code Selected version and required files
Data Records, their count, and control values
Attachments File contents and link to record
Settings Setting names and access to the required environment

Store secrets separately from published archive. Specify who can open a copy if main account becomes unavailable.

In Supabase, the database backup does not include Storage objects themselves. File metadata and files are separate parts of recovery.Backup documentation.

Step 2. Run the local recovery exercise

Python 3 and Git are required. Use training kit, not the project working folder.

  • Assign Codex to unpack the package into a separate folder and readREADME.md and run_demo.py. It performs the exercise without affecting your real project.
  • Codex verifies that the script creates its own folderrun-... and uses fictional data, local Git, and separate copies of JSON and file.
  • Agent launches python3 run_demo.pyfrom the kit folder. Windows variantpy -3 run_demo.py depends on installed Python launcher and is not verified here.
  • Agent opens and shows new results.json. Expected result: passed: 8, eight successful checks.
  • It verifies Git history saving, selected file recovery, two records, and attachment. The unrelated practice file must remain intact. You get final check and report path.

For your own project, use the prompt at the end of this guide. Before releasing, prepare a rollback plan.

The expected 8/8 result belongs to the practice kit. When repeating it, show the new report and check each item. The earlier local run does not confirm cloud database recovery, Storage files or Windows operation.

Step 3. How to check your own copy

Restore first in a separate environment. The archive must open, needed files must match, and the app must read returned data. Record copy date: today's records won't appear if copy was made yesterday.

If there is a mismatch, check the selected version and archive contents. Save the corrupted state before fixing. Replace the working database only after testing recovery in a separate environment and agreeing on that change.

What you will have

The backup is restored into a separate folder, showing which data and files were recovered.

Next: How to continue work in Codex in a new chat..

Prompt for Codex

Paste into your project chat:

Find the source data in the available project and conversation and fill in the bracketed fields yourself. Ask me about any unknown goals, preferences or sources; do not invent them.
Prepare recovery for [project folder]. Find the code, data and uploaded files. Preserve the original state and test the backup in a separate environment. Open the restored version, check the selected scenario, attachment links and missing data. Show the result before changing the working project.

What to try next

In this guide
Saved