Export and restore CowAgent configuration and workspace data as a portable archive, including config.json, persona files, memory, sessions, knowledge, custom skills and scheduled tasks.
CowAgent can create a portable local archive for migration or disaster recovery.
Agent persona and user files such as AGENT.md, USER.md, and MEMORY.md
Daily memory, session history, knowledge, custom skills, and scheduled tasks in the configured workspace
The Agent registry, channel bindings, and every configured Agent workspace when multi-Agent mode is configured
Legacy user_datas.pkl, when present
Transient tmp/ data, caches, Git metadata, and symbolic links are skipped. The
archive is written with owner-only permissions where the operating system
supports them.
A backup may contain API keys, conversation history, and other personal data.
Store and transfer it as a secret. The ZIP file is not encrypted.
For a multi-Agent archive, --workspace is the instance root. CowAgent restores
the default Agent into that root and every other Agent into
<root>/agents/<agent-id>, the same layout the Agent registry derives on its
own. Without the option, Agent IDs that already exist locally keep their current
workspace, and the rest are placed under the instance root this machine already
uses.Restore validates the archive format and paths before writing anything. It
overwrites matching files but does not delete unrelated files already present
at the destination. When current CowAgent data exists, the command first
creates a cow-pre-restore-*.zip rollback archive beside the selected backup.For unattended scripts, pass --yes to acknowledge overwrites.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"CowAgent","description":"CowAgent - AI Super Assistant powered by LLMs, with autonomous task planning, long-term memory, skills system, and multi-channel deployment.","colors":{"primary":"#35A85B","light":"#4ABE6E","dark":"#228547"},"logo":{"light":"https://mintcdn.com/minimalfuture/kFr6XLKqkl319blp/images/logo.jpg?fit=max\u0026auto=format\u0026n=kFr6XLKqkl319blp\u0026q=85\u0026s=71578eed432dfbc8615e84af3b5f2eab","dark":"https://mintcdn.com/minimalfuture/kFr6XLKqkl319blp/images/logo.jpg?fit=max\u0026auto=format\u0026n=kFr6XLKqkl319blp\u0026q=85\u0026s=71578eed432dfbc8615e84af3b5f2eab"},"favicon":"https://mintcdn.com/minimalfuture/kFr6XLKqkl319blp/images/favicon.ico?fit=max\u0026auto=format\u0026n=kFr6XLKqkl319blp\u0026q=85\u0026s=38cedc5ca4e6be81dc0609fe0e9c11ba","appearance":{"default":"light"},"navbar":{"links":[{"href":"https://cowagent.ai/","label":"官网"},{"href":"https://cowagent.ai/download/","label":"下载"},{"href":"https://cowagent.ai/zh/blog/","label":"博客"},{"href":"https://github.com/zhayujie/CowAgent","label":"GitHub"}]},"footer":{"socials":{"github":"https://github.com/zhayujie/CowAgent"}},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","default":true,"navbar":{"links":[{"href":"https://cowagent.ai/","label":"Website"},{"href":"https://cowagent.ai/download/","label":"Download"},{"href":"https://cowagent.ai/blog/","label":"Blog"},{"href":"https://github.com/zhayujie/CowAgent","label":"GitHub"}]},"href":"intro"},{"language":"zh","navbar":{"links":[{"href":"https://cowagent.ai/?lang=zh","label":"官网"},{"href":"https://cowagent.ai/zh/download/","label":"下载"},{"href":"https://cowagent.ai/zh/blog/","label":"博客"},{"href":"https://github.com/zhayujie/CowAgent","label":"GitHub"}]},"href":"zh/intro"},{"language":"ja","navbar":{"links":[{"href":"https://cowagent.ai/","label":"ウェブサイト"},{"href":"https://cowagent.ai/download/","label":"ダウンロード"},{"href":"https://cowagent.ai/blog/","label":"ブログ"},{"href":"https://github.com/zhayujie/CowAgent","label":"GitHub"}]},"href":"ja/intro"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"minimalfuture","hasAudioNarration":false,"actualSubdomain":"minimalfuture","customDomains":["docs.cowagent.ai"],"gitSource":{"type":"github","owner":"zhayujie","repo":"cowagent","deployBranch":"master","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aec45a358e46bfb54f4d497","collectionId":"ee67b14b-d1b4-4d82-85cb-698610329835","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aec45a358e46bfb54f4d497"},"entitlements":{},"buildId":"6aec45a358e46bfb54f4d497","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"en","tag":"Releases","count":24},{"language":"en","tag":"Release Notes","count":24},{"language":"ja","tag":"リリース","count":24},{"language":"ja","tag":"リリースノート","count":24},{"language":"zh","tag":"版本","count":24},{"language":"zh","tag":"发布记录","count":24},{"language":"en","tag":"Tools","count":18},{"language":"ja","tag":"ツール","count":18},{"language":"zh","tag":"工具","count":18},{"language":"en","tag":"Models","count":15},{"language":"en","tag":"Model Configuration","count":15},{"language":"ja","tag":"モデル","count":15},{"language":"ja","tag":"モデル設定","count":15},{"language":"zh","tag":"模型","count":15},{"language":"zh","tag":"模型配置","count":15},{"language":"en","tag":"Channels","count":13},{"language":"en","tag":"Platforms","count":13},{"language":"en","tag":"Built-in Tools","count":13},{"language":"ja","tag":"チャネル","count":13},{"language":"ja","tag":"プラットフォーム","count":13},{"language":"ja","tag":"内蔵ツール","count":13},{"language":"zh","tag":"通道","count":13},{"language":"zh","tag":"接入渠道","count":13},{"language":"zh","tag":"内置工具","count":13},{"language":"en","tag":"Skills","count":7},{"language":"ja","tag":"スキル","count":7},{"language":"zh","tag":"技能","count":7},{"language":"en","tag":"CLI","count":6},{"language":"zh","tag":"命令","count":6},{"language":"ja","tag":"CLI","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"cli/backup","slug":"/cli/backup","pageMetadata":{"title":"Backup and Restore","description":"Export and restore CowAgent configuration and workspace data as a portable archive, including config.json, persona files, memory, sessions, knowledge, custom skills and scheduled tasks.","href":"/cli/backup"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Export and restore CowAgent configuration and workspace data as a portable archive, including config.json, persona files, memory, sessions, knowledge, custom skills and scheduled tasks.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`CowAgent can create a portable local archive for migration or disaster recovery.`}),`\n`,_jsx(Heading,{level:`2`,id:`create-a-backup`,children:`Create a backup`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`cow`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` backup`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`cow`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` backup`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --output`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /safe/location/cow-backup.zip`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The archive contains:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.code,{children:`config.json`})}),`\n`,_jsxs(_components.li,{children:[`Agent persona and user files such as `,_jsx(_components.code,{children:`AGENT.md`}),`, `,_jsx(_components.code,{children:`USER.md`}),`, and `,_jsx(_components.code,{children:`MEMORY.md`})]}),`\n`,_jsx(_components.li,{children:`Daily memory, session history, knowledge, custom skills, and scheduled tasks in the configured workspace`}),`\n`,_jsx(_components.li,{children:`The Agent registry, channel bindings, and every configured Agent workspace when multi-Agent mode is configured`}),`\n`,_jsxs(_components.li,{children:[`Legacy `,_jsx(_components.code,{children:`user_datas.pkl`}),`, when present`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Transient `,_jsx(_components.code,{children:`tmp/`}),` data, caches, Git metadata, and symbolic links are skipped. The\narchive is written with owner-only permissions where the operating system\nsupports them.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`A backup may contain API keys, conversation history, and other personal data.\nStore and transfer it as a secret. The ZIP file is not encrypted.`})}),`\n`,_jsx(Heading,{level:`2`,id:`restore-a-backup`,children:`Restore a backup`}),`\n`,_jsx(_components.p,{children:`Stop CowAgent before restoring:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`cow`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` stop`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`cow`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` restore`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /safe/location/cow-backup.zip`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`--workspace`}),` to migrate workspace files to a different location:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`cow`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` restore`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` cow-backup.zip`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --workspace`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ~/cow-restored`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`For a multi-Agent archive, `,_jsx(_components.code,{children:`--workspace`}),` is the instance root. CowAgent restores\nthe default Agent into that root and every other Agent into\n`,_jsx(_components.code,{children:`\u003croot>/agents/\u003cagent-id>`}),`, the same layout the Agent registry derives on its\nown. Without the option, Agent IDs that already exist locally keep their current\nworkspace, and the rest are placed under the instance root this machine already\nuses.`]}),`\n`,_jsxs(_components.p,{children:[`Restore validates the archive format and paths before writing anything. It\noverwrites matching files but does not delete unrelated files already present\nat the destination. When current CowAgent data exists, the command first\ncreates a `,_jsx(_components.code,{children:`cow-pre-restore-*.zip`}),` rollback archive beside the selected backup.`]}),`\n`,_jsxs(_components.p,{children:[`For unattended scripts, pass `,_jsx(_components.code,{children:`--yes`}),` to acknowledge overwrites.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Backup and Restore","description":"Export and restore CowAgent configuration and workspace data as a portable archive, including config.json, persona files, memory, sessions, knowledge, custom skills and scheduled tasks.","href":"/cli/backup"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Create a backup","slug":"create-a-backup","depth":2,"children":[]},{"title":"Restore a backup","slug":"restore-a-backup","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/minimalfuture/ddae7aac1b554a23/assistant-widget.js"],"subdomain":"minimalfuture","siteName":"CowAgent","title":"Backup and Restore - CowAgent","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/cli/backup","matchLevel":0},"zh":{"href":"/zh/cli/backup","matchLevel":1},"ja":{"href":"/ja/intro","matchLevel":4}}},"lastModified":"2026-10-14T09:36:28.137Z","originalFileLocation":"cli/backup.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Export and restore CowAgent configuration and workspace data as a portable archive, including config.json, persona files, memory, sessions, knowledge, custom skills and scheduled tasks.\">\u003cmeta data-mint-head name=\"application-name\" content=\"CowAgent\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/minimalfuture/gk-TAsZO3835JLt2/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/minimalfuture/gk-TAsZO3835JLt2/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/minimalfuture/gk-TAsZO3835JLt2/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/minimalfuture/gk-TAsZO3835JLt2/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/minimalfuture/gk-TAsZO3835JLt2/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/minimalfuture/gk-TAsZO3835JLt2/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/minimalfuture/gk-TAsZO3835JLt2/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/minimalfuture/gk-TAsZO3835JLt2/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/minimalfuture/gk-TAsZO3835JLt2/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Backup and Restore - CowAgent\">\u003cmeta data-mint-head property=\"og:description\" content=\"Export and restore CowAgent configuration and workspace data as a portable archive, including config.json, persona files, memory, sessions, knowledge, custom skills and scheduled tasks.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"CowAgent\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.cowagent.ai/cli/backup\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://minimalfuture.mintlify.site/_mintlify/api/og/v2?division=Command+System\u0026amp;title=Backup+and+Restore\u0026amp;description=Export+and+restore+CowAgent+configuration+and+workspace+data+as+a+portable+archive%2C+including+config.json%2C+persona+files%2C+memory%2C+sessions%2C+knowledge%2C+custom+sk\u0026amp;theme=0a7de74e5357106a73c9a24a\u0026amp;signature=45693d0f85021a0847412960d4db73bdf98f11e328fcc6e2c688d0761b6a71ad\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Backup and Restore - CowAgent\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Export and restore CowAgent configuration and workspace data as a portable archive, including config.json, persona files, memory, sessions, knowledge, custom skills and scheduled tasks.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://minimalfuture.mintlify.site/_mintlify/api/og/v2?division=Command+System\u0026amp;title=Backup+and+Restore\u0026amp;description=Export+and+restore+CowAgent+configuration+and+workspace+data+as+a+portable+archive%2C+including+config.json%2C+persona+files%2C+memory%2C+sessions%2C+knowledge%2C+custom+sk\u0026amp;theme=0a7de74e5357106a73c9a24a\u0026amp;signature=45693d0f85021a0847412960d4db73bdf98f11e328fcc6e2c688d0761b6a71ad\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/minimalfuture/gk-TAsZO3835JLt2/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"CowAgent\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#35A85B\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.cowagent.ai/cli/backup\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/cli/backup.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.cowagent.ai/cli/backup\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.cowagent.ai/zh/cli/backup\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.cowagent.ai/cli/backup\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.cowagent.ai/#organization\",\"name\":\"CowAgent\",\"url\":\"https://docs.cowagent.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/minimalfuture/kFr6XLKqkl319blp/images/logo.jpg?fit=max\u0026auto=format\u0026n=kFr6XLKqkl319blp\u0026q=85\u0026s=71578eed432dfbc8615e84af3b5f2eab\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.cowagent.ai#website\",\"name\":\"CowAgent\",\"url\":\"https://docs.cowagent.ai\",\"publisher\":{\"@id\":\"https://docs.cowagent.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.cowagent.ai/cli/backup#webpage\",\"url\":\"https://docs.cowagent.ai/cli/backup\",\"name\":\"Backup and Restore\",\"description\":\"Export and restore CowAgent configuration and workspace data as a portable archive, including config.json, persona files, memory, sessions, knowledge, custom skills and scheduled tasks.\",\"dateModified\":\"2026-10-14T09:36:28.137Z\",\"isPartOf\":{\"@id\":\"https://docs.cowagent.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.cowagent.ai/cli/backup#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.cowagent.ai/cli/backup#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Command System\",\"item\":\"https://docs.cowagent.ai/cli/index\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Backup and Restore\",\"item\":\"https://docs.cowagent.ai/cli/backup\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.cowagent.ai/cli/backup#article\",\"headline\":\"Backup and Restore\",\"name\":\"Backup and Restore\",\"description\":\"Export and restore CowAgent configuration and workspace data as a portable archive, including config.json, persona files, memory, sessions, knowledge, custom skills and scheduled tasks.\",\"url\":\"https://docs.cowagent.ai/cli/backup\",\"mainEntityOfPage\":{\"@id\":\"https://docs.cowagent.ai/cli/backup#webpage\"},\"dateModified\":\"2026-10-14T09:36:28.137Z\",\"publisher\":{\"@id\":\"https://docs.cowagent.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.cowagent.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"CowAgent\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"CowAgent","nav":{"global":null,"languages":[{"language":"en","default":true,"navbar":{"links":[{"href":"https://cowagent.ai/","label":"Website"},{"href":"https://cowagent.ai/download/","label":"Download"},{"href":"https://cowagent.ai/blog/","label":"Blog"},{"href":"https://github.com/zhayujie/CowAgent","label":"GitHub"}]},"tabs":[{"tab":"Introduction","pages":[{"title":"Introduction","href":"/intro"}]},{"tab":"Get Started","pages":[{"title":"Get Started","href":"/guide/quick-start"}]},{"tab":"Models","pages":[{"title":"Models","href":"/models"}]},{"tab":"Tools","pages":[{"title":"Tools","href":"/tools"}]},{"tab":"Skills","pages":[{"title":"Skills","href":"/skills"}]},{"tab":"Memory","pages":[{"title":"Memory","href":"/memory"}]},{"tab":"Knowledge","pages":[{"title":"Knowledge","href":"/knowledge"}]},{"tab":"Channels","pages":[{"title":"Channels","href":"/channels"}]},{"tab":"CLI","groups":[{"group":"Command System","pages":[{"title":"Commands Overview","href":"/cli"},{"title":"Process Management","href":"/cli/process"},{"title":"Skill Management","href":"/cli/skill"},{"title":"Memory \u0026 Knowledge","description":"Memory and knowledge commands: run memory dream to distill recent daily memories into MEMORY.md and a dream diary on demand, and use knowledge to view and manage the personal knowledge base.","href":"/cli/memory-knowledge"},{"title":"Backup and Restore","href":"/cli/backup"},{"title":"General Commands","description":"Reference for everyday CowAgent commands such as help, status, cancel, steer, config and context, usable with / in chat or cow in a terminal to check status, stop tasks and manage settings.","href":"/cli/general"}]}]},{"tab":"Multi-Agent","pages":[{"title":"Multi-Agent","href":"/multi-agent/team"}]},{"tab":"Extensions","pages":[{"title":"Extensions","href":"/extensions/chat-api"}]},{"tab":"Releases","pages":[{"title":"Releases","href":"/releases/overview"}]}]},{"language":"zh","navbar":{"links":[{"href":"https://cowagent.ai/?lang=zh","label":"官网"},{"href":"https://cowagent.ai/zh/download/","label":"下载"},{"href":"https://cowagent.ai/zh/blog/","label":"博客"},{"href":"https://github.com/zhayujie/CowAgent","label":"GitHub"}]},"pages":[{"title":"zh","href":"/zh/cli/backup"}]},{"language":"ja","navbar":{"links":[{"href":"https://cowagent.ai/","label":"ウェブサイト"},{"href":"https://cowagent.ai/download/","label":"ダウンロード"},{"href":"https://cowagent.ai/blog/","label":"ブログ"},{"href":"https://github.com/zhayujie/CowAgent","label":"GitHub"}]},"pages":[{"title":"ja","href":"/ja/intro"}]}]},"basePath":"","title":"Backup and Restore - CowAgent","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":[],"chunks":[]}