You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: Built-in backup and restore of the Copilot desktop app's projects, sessions, and settings (for reinstall / new PC) #6155
Describe the feature or problem you'd like to solve
The Copilot desktop app stores everything locally under ~/.copilot/ (Windows: %USERPROFILE%\.copilot\), but it has no user-facing backup or restore. After reinstalling Windows or moving to a new PC, the following are lost:
Registered projects and their links to sessions (data.db)
Session conversations, checkpoints, and artifacts (session-state/<id>/, session-store.db, chats/, attachments/)
Customize settings: custom instructions, installed and enabled plugins, MCP server config, and trusted folders (copilot-instructions.md, config.json, settings.json, mcp-config.json, installed-plugins/)
The only backup I found is data.db.pre-update-backup-*, which the app creates automatically before an update. It covers only data.db, stays on the same machine, and has no restore action in the app.
Copying the folder manually is not reliable:
data.db and session-store.db are SQLite databases in WAL mode. Copying them while the app is running can produce an inconsistent copy.
Session data spans several databases and folders that must stay consistent. Restoring only part of them can make sessions fail to load.
Paths that contain the user profile are stored inside the data.
Putting ~/.copilot in a synced folder such as OneDrive is risky because of active DB writes and many lock files.
Proposed solution
Export: Create a single, consistent backup archive that includes projects, sessions, and Customize settings. Make it available from the app UI and the CLI (for example, copilot backup export).
Import/restore: Restore that archive on a new or reinstalled machine. Rewrite paths for the new user profile, and keep or merge existing data.
Scheduled backup (optional): Back up periodically to a folder chosen by the user.
Exclude credentials: Leave out OAuth tokens such as mcp-oauth-config/, and ask the user to sign in again after restoring.
Activity
github-app-releaser commentedon Nov 25, 2026
Thank you for the report. The team is evaluating this request.
Xref: github/github-app#31500