Last checked against Replit's documentation on 28 November 2026. Replit changes its product often, so check the pages linked below before you rely on a menu name or a command.
When a Replit app misbehaves and support is slow to answer, the one thing fully in your hands is a copy of what you built: the code, the data, the secrets and the settings. Having that copy does not depend on anyone replying. It also turns the next decision (stay, move, or rebuild elsewhere) into a calm one.
This guide follows Replit's own documented procedure for copying a project and adds what you need when the destination is not another Replit account. Replit's page is written for copying a project to another workspace, so each step below says which part is Replit's documentation and which part is standard practice.
Before you start
Replit's manual copy guide lists the conditions - Replit, manually copy projects:
- You need access to the old project and to wherever the copy is going, and about an hour for the final switch.
- Custom domains need access to your domain provider.
- The database and the web address are the two items that do not copy automatically.
- If an admin has turned on Ban source code export, you cannot download a zip. Check with the admin first.
The same page is reassuring on one point that matters when you are nervous: "the old project is not deleted," so you can always revert. It also sets expectations on downtime. The app is usually offline for 15 to 60 minutes, and data loss happens only if someone adds data to the old app after the database copy, which is why you take the old app offline before the final copy.
Step 1: Copy the code
There are two documented routes. Use GitHub if you can, because it keeps your history.
Route A: GitHub. In the old project, open the Git pane, connect a GitHub repository, then commit and push, using a private repository. Only committed and pushed files are copied, and ignored files and uncommitted changes are left behind. Replit adds a warning worth taping to your monitor: never commit secret values or database dumps - Replit, manually copy projects.
Route B: a zip file. Use the three-dot menu at the top of the file tree and choose Download as zip. If the download fails, open a Shell and run zip -r project.zip ., then download project.zip from the file tree - Replit, projects and files. Replit's manual copy guide has a tighter command for large projects, because its import accepts a zip up to 200 MB:
zip -r project.zip . -x ".cache/*" "node_modules/*" ".venv/*" "venv/*" ".pythonlibs/*" "build/*" "target/*" ".next/*" "__pycache__/*"
Always exclude .cache. Replit's reason is that the folder holds internal state, including cached secret values, so a zip that includes it can carry secrets you did not mean to share. If the zip is still over 200 MB, the same page shows a variant that also excludes .git, and it warns that this removes your commit history - Replit, manually copy projects.
Step 2: Copy the database
Replit documents the database copy with the standard PostgreSQL tools, run in the Shell. The export is:
pg_dump -Fc "$DATABASE_URL" --no-owner --no-privileges -f backup.dump
Read the next sentence of the documentation before you run it: this exports the development database. For live data, open the Database tool, select production, open Settings, copy the connection string, and use it in place of "$DATABASE_URL", keeping the quotes - Replit, manually copy projects. Copying only the development database while your app serves production data is an easy way to think you are safe when you are not.
Two more facts from the page:
- Data written after you run
pg_dumpis not in the copy, so the dump you restore from must be the last one, taken with the old app offline. - Each dump contains a full export of your data. Keep it private, never commit it, and delete the file from every place it sits after about a week.
Download backup.dump from the project's file tree. You now hold your data.
Step 3: Write down what does not copy
This table is the part people discover too late. It is Replit's own list of what does not come across - Replit, manually copy projects:
| Item | What you must do |
|---|---|
| Secrets | Re-add every value by hand, including deployment secrets. Replit says secret values never leave the old project |
| Account secrets | Link them again in the new place |
| App storage | Buckets do not move. Download the objects and upload them again |
| Connectors | Reconnect each integration |
| Deployments | The copy is unpublished, so publish it again |
| Custom domains | Remove from the old deployment, link to the new one, update DNS |
| Collaborators | Invite them again and set access |
| Agent history | Agent conversations and checkpoint rollbacks stay with the old project |
Secrets deserve a special note. Development secrets are only available in the editor, and published apps need the same keys added as deployment secrets, which Replit keeps separate by design - Replit, projects and files. Make a list of every key your app reads before you leave, from the Secrets tool, and note which service each belongs to, so you can re-issue the ones you no longer trust.
Step 4: Restore somewhere you control
Replit documents the restore into another Replit project:
pg_restore --clean --if-exists --single-transaction --no-owner --no-privileges --exit-on-error -d "$DATABASE_URL" backup.dump
Replit says this drops any matching objects in the target database, then loads the data. To restore to a host that is not Replit, the same command works with that host's connection string, because the file is a standard PostgreSQL custom-format dump. That last part is general PostgreSQL practice and not something Replit documents, so run it first against an empty test database and check your tables and row counts before you point anything real at it.
For the code, the new host depends on your app's framework. The build and start commands are the ones in your project's configuration, and the environment variables are the secrets from Step 3. Deploy to a test address first, and test the app as a user would before you touch the live domain.
Step 5: Switch users over, with a way back
Replit's procedure for the switch is worth following in order - Replit, manually copy projects:
- Test the new copy on its own address with a copy of the data.
- Unpublish the old app, so nobody writes new data to it.
- Repeat the database copy for the final data.
- Move the domain: disconnect it from the old deployment, connect it to the new one, and update the DNS records at your provider. Propagation can take from a few minutes to a few hours.
- Verify the new app loads with your data.
The way back is just as simple: publish the old project again and move the domain back, and it returns to the state it had when you unpublished it. Keep the old project until you are sure.
When to do it yourself and when not to
If your project is small and you are comfortable with a shell, the steps above can be a short job, and the documentation is clear. They are harder when the app depends on Replit-specific services (storage buckets, connectors, the agent), when the data is large, or when you cannot afford the downtime window.
Whatever you decide, take the code and the database dump first, while the old app is still reachable. Everything else can wait for you to choose.
If you would rather hand it over
Founden wrote this guide and also sells help with this kind of move, so weigh the next paragraph accordingly.
Founden is an AI that builds and runs companies. Its finish-your-app offer opens a separate Founden project from what you can share (a public repository, a public preview, or screenshots and notes) plus one workflow to keep and one launch blocker to clear, such as getting the app off Replit onto hosting you control. Building starts with Pro at $29 a month, the account is free, and your original app, hosting and database stay on your own setup. A real move still needs your own access to your database dump, domain and any payment or email service, and taking the dump from a live production database is a step you control. If that fits, scope your release. If not, the steps above are the whole job.
In this topic: Building with AI
- Move a Base44 App Off Base44: What the Docs Allow
- Move a Lovable App to Your Own Hosting: What Carries Over
- Lovable Supabase RLS: Empty Data or Error 42501 Fix
- Lovable Stripe Webhook Not Working: Paid, No Order Fix
- Gumroad Alternatives: Lower Fees, Tax and How to Move
- Carrd Alternatives 2026: Costs, Limits and How to Move
- WordPress Alternatives 2026: Costs, Security and Moving
- Kajabi Alternatives: Real Yearly Costs and How to Move
How do you build software with AI? Every guide on it
Data behind this topic: AI app builders and coding agents: free and first paid plans.