A backup checklist for Cursor projects
Cursor’s checkpoints are local and are not Git. The durable copy is a repository you have pushed, plus a separate copy of any database the app uses.
Updated 2026-10-14. Written from the vendor docs linked at the end. Not a guarantee that a restore will work.
Checkpoints are for undoing the agent, not for backup
During an Agent session, Cursor saves checkpoints before significant changes. You can preview a checkpoint in the chat and restore it, which reverts the modified files to that point. Cursor’s Agent overview says two limits in plain words: checkpoints are stored locally and are separate from Git, and restoring one reverts files only. It does not remove messages from the conversation.
Use a checkpoint when the agent has just made a mess and the files are still on this machine. Do not count it as a backup. Cursor does not document checkpoints as something you can restore on another computer, and this checklist does not invent a way.
The copy that survives is Git, pushed somewhere else
Commit the work, and push it to a remote you can open in a browser. A repository that exists only on the laptop is one disk failure away from gone. A repository that exists only as a GitHub account you no longer remember is not much better. You want a remote, and a clone on a machine you still control.
If that remote is GitHub and someone deletes the repository, GitHub can restore some deleted repositories within 90 days, unless the repository was part of a fork network that is not empty. Restore can take up to an hour to appear. The click-path is Settings → Repositories → Deleted repositories for a personal account, or the organisation’s Deleted repositories page. Details are in GitHub’s restore guide.
Worktrees are extra checkouts, not extra backups. Cursor can isolate an agent in a worktree, and you can delete that worktree when the task is done. Commit anything you mean to keep, on a branch that is pushed. A file that exists only in a worktree you then delete is gone.
Commit the project rules you depend on
Project rules live in .cursor/rules as .mdc files. Cursor says they are version-controlled, and that you should check them in so the next person, and the next machine, gets them. A plain .md file in that folder is ignored by the rules system. AGENTS.md at the project root is picked up as plain markdown. Commit that too if the agent relies on it.
User rules in Cursor Settings belong to the account and sync when you sign in on another machine. Files under the user rules directory on disk stay on that machine and do not sync. Team rules are on Cursor’s servers. None of those replace the project files. If a rule must travel with the code, it belongs in the repository.
.cursor/worktrees.json is project configuration for how a worktree is set up. If you use it, commit it with the rest of the project.
Do not “back up” secrets into the repository
An env file, a service-role key, and a database URL are not documentation. Keep them out of Git. The free scan looks at a public repository for a committed env file and for secret-shaped strings in client code. It reports the path and the kind of match. It does not store the secret. Fix the repo, then rotate the value, because a public history keeps the old commit.
The repository is still not a backup of the database. If the app uses Supabase on the free plan, follow the Supabase guide: there is no automatic daily backup until you export one. If the app started in Lovable or Bolt, the builder project can be deleted separately from the repo, and the repo does not hold the database rows. Those two guides are linked below.
Checklist
- The project is a Git repository, and the branch you work on has a commit you could revert to.
- That branch is pushed to a remote you can open without this laptop.
- You have a clone, or another remote, that is not the only copy.
- Project rules in .cursor/rules, and AGENTS.md if you use it, are committed.
- Env files and keys are gitignored. They are not pasted into a file the agent committed.
- The lockfile is committed, so a reinstall does not float the dependency tree.
- The database and uploaded files have a copy outside the builder and outside this Git host. Code history does not include them.
- You know whether a deleted GitHub repo would be inside the 90-day restore window, and you are not using that window as the plan.
- A public repository has been through the free scan, and you have read the report rather than only the grade.
Questions
Do Cursor checkpoints replace Git?
No. Cursor says checkpoints are stored locally and are separate from Git. Use them to undo Agent changes. Use Git for permanent version control. Restoring a checkpoint reverts files. It does not remove chat messages, and it is not a copy on another machine.
Which Cursor rules are in the repository?
Project rules in .cursor/rules are version-controlled if you commit them. Cursor says to check them in. User rules in Cursor Settings stay with your Cursor account and sync when you sign in. Rule files in the user rules directory on the machine do not sync. Team rules live on Cursor’s servers.
Does the Cursor GitHub app back the project up?
The Cursor GitHub app connects repositories so you can use Cloud Agents and Bugbot. Cursor’s docs describe those permissions. They do not describe the app as a backup. A push to a repository you can clone is the backup. The app is a connection.
Sources
Related
Vendor limits quoted above are from those docs, not measurements by LastGood.