Build and Launch a Website with AI
How to back up an AI website (2026): GitHub source, database, uploads and recovery tests
Save the code, database, uploaded files and deployment settings behind an AI-built website. Understand ZIP snapshots and rollback limits, then test recovery in a separate environment.

Before asking an AI builder to redesign your live website, save the materials needed to rebuild it: source code, business data, uploaded files and deployment settings. A downloaded ZIP or a rollback button alone does not establish that the whole site can be restored.
This guide uses a portfolio with a contact form. A display-only site can start with code and images; sites with accounts, submissions or uploads need additional backups. The procedure was checked against official documentation on November 23, 2026. It does not claim that your project has been backed up or restored.
| Material | Typical location | What to retain |
|---|---|---|
| Source code | AI builder or GitHub | Buildable project, version and lockfiles |
| User and business records | Database or hosted form service | Suitable backup or export and restore instructions |
| Uploaded images and attachments | Object storage or media library | Actual files, paths and relevant access settings |
| Runtime configuration | Hosting, authentication and email services | Build settings, variable inventory, callbacks and account ownership |
| Domain configuration | Registrar and DNS provider | Management access, renewal details and DNS records |
An image URL in a repository is not the image itself. A form service may store submissions outside your website database. Use the forms and login guide to identify where data is received and saved. Mark genuinely unused components as absent; investigate unknown ones.
If the builder supports GitHub synchronization or source export, complete that export first. Confirm that you control access to the repository and that it contains recent changes. If complete source export is unavailable, establish what can be exported and what would need rebuilding. Screenshots cannot replace application source.
On GitHub, select the intended branch, tag or commit, then choose Code → Download ZIP. Record the repository address, commit ID and download time. Extract the archive and check source files, configuration and the relevant package manager lockfile. For a plain HTML site, check pages, styles, scripts and local images.
A source archive is a snapshot, without the full commit history. Branches can move, so a note saying only “backed up main” does not identify the saved revision. See GitHub's archive documentation.
If you use Git, you can also make a mirror containing repository history. Replace the example URL; private repositories require access:
git clone --mirror https://github.com/OWNER/REPOSITORY.git website.git
git -C website.git fsck --full
For Git LFS projects, install the required tool and fetch its objects, for example with git -C website.git lfs fetch --all. A mirror is not a normal deployment working directory. Passing a Git object check does not verify an application build, and repository backups do not automatically include hosting secrets or external business records. See GitHub backup instructions.
Identify the backend's supported backup, download and restore options for your current plan. Record the source project, backup time and restore method. An internal platform restore point still depends on that platform and its retention conditions; it is different from a file you have downloaded.
CSV exports can preserve some records but do not establish that schemas, relationships, permissions, authentication settings and all other data are recoverable. For a functioning backend, follow the service's complete backup and restore procedure.
Supabase database backups do not include objects stored through its Storage API. The database contains metadata about those files. Restored rows can therefore reference images whose bytes were never backed up. Save the actual files separately and record paths, bucket settings and access policies. See Supabase database backups.
Also inventory authentication settings, API keys, server functions and other platform configuration. Supabase's new-project restore documentation lists items requiring manual reconfiguration. A completed database restore is not proof that every backend service has moved.
Record separate timestamps for source, database and files. If writes continue, have the implementer choose a consistent backup point or a suitable low-write procedure so the saved database and files agree.
Document the production branch, root directory, build command, output directory, runtime version and external service project names. List environment variable names, purposes and scopes in ordinary notes. Store real credentials in controlled encrypted storage or a password manager, accessible to authorized people who would perform recovery.
Do not commit a credential-filled .env to a public repository. Conversely, a note saying “secret exists somewhere” is not usable recovery information.
Vercel variables have environment scopes, and changes apply to new deployments. A replacement project needs the correct configuration and a new build; uploading source will not recover missing values. See environment variable documentation.
Save domain and DNS details, including email-related records. Recording them does not require changing live DNS. Use a temporary URL for the first recovery test; consult the domain connection guide when an actual hosting change is ready.
Create a backup-notes.md with these fields:
Website and production URL:
Repository, branch and commit ID:
Source backup location, time and checksum:
Database source, backup time and restore method:
Uploaded file backup location, time and path rules:
Deployment settings and variable inventory location:
Controlled credential location and authorized people:
Domain, DNS and external account ownership:
Last recovery test, coverage and unresolved failures:
Retain a copy accessible independently of the current builder account. Restrict access to real user data and credentials.
Plan isolation before restoring data. A new project is not automatically isolated from external effects.
Supabase's binary new-project restore can copy extensions and scheduled jobs that perform external operations. They may run as soon as restoration finishes, and that restore method does not let you exclude or pause them beforehand. When jobs or webhooks must be inspected first, use a controlled logical restore procedure and review its limitations, including encrypted data. See restore boundaries and the CLI recovery procedure.
For a basic portfolio, start with these checks:
- Take the source from the saved backup, import it into a temporary project and apply the recorded build configuration.
- Open its temporary URL. Check the homepage, one detail page, images, downloads and refresh behavior.
- For an application, use separately restored test data and files. Confirm that its API does not point back to production; handle email, payment, scheduled jobs and callbacks under the test plan.
- With fictional test records, verify login, saving, reading, attachments and separation between two accounts. Check test callback URLs for external login.
- Record what worked and what still needs configuration. Restrict temporary access where real data is involved and handle the test copy appropriately afterward.
The React and Vite deployment guide covers building and publishing a frontend. If only pages and assets were recovered, report that scope rather than claiming the membership system and backend are restored.
A deployment rollback can return visitors to an earlier release after a broken update. It does not restore an external database or deleted uploads, and an old build may depend on older configuration. See Vercel promotion and rollback.
A backup supports rebuilding when the original project or its materials are unavailable. Set a schedule around actual update frequency, and create an identifiable checkpoint before a redesign, schema change or platform move. Retain the source, time and recovery result for each checkpoint.