← 返回
未分类 Key 中文

Personality Backup

Create encrypted backups of agent personality files, memory, config, secrets, and projects. Use when the agent needs to set up, run, or manage automated back...
创建代理人格文件、记忆、配置、密钥和项目的加密备份,用于代理设置、运行或管理自动备份时。
civilainominee civilainominee 来源
未分类 clawhub v1.0.2 1 版本 100000 Key: 需要
★ 0
Stars
📥 190
下载
💾 0
安装
1
版本
#latest

概述

Personality Backup

Encrypted backup of agent identity, memory, and workspace data.

Prerequisites

  • p7zip-full (7-zip CLI)
  • Python 3 with smtplib (for email delivery)
  • A backup password stored in a file

Configuration

Create ~/.openclaw/secrets/backup-config.json:

{
  "password_file": "/home/jan/.openclaw/secrets/backup-password.txt",
  "password_field": "Password",
  "delivery": "email",
  "email": {
    "to": "user@example.com",
    "from": "agent@example.com",
    "smtp_host": "mail.example.com",
    "smtp_port": 465,
    "smtp_user": "agent@example.com",
    "smtp_pass_env": "BACKUP_SMTP_PASS"
  },
  "local": {
    "dir": "/home/jan/backups"
  },
  "workspace": "/home/jan/.openclaw/workspace",
  "secrets_dir": "/home/jan/.openclaw/secrets",
  "config_file": "/home/jan/.openclaw/openclaw.json",
  "agent_name": "Agent",
  "agent_emoji": "",
  "personality_files": ["SOUL.md", "IDENTITY.md", "USER.md", "AGENTS.md", "MEMORY.md", "TOOLS.md"],
  "backup_memory": true,
  "backup_secrets": true,
  "backup_config": true,
  "backup_projects": true,
  "backup_scripts": true,
  "project_excludes": ["node_modules", ".git", "__pycache__", "*.mp4", "*.mp3", "*.wav"],
  "generate_restore_guide": true
}

All fields have sensible defaults. Only password_file and delivery settings are required.

Password File Format

The password file should contain a line: Password: YOUR_SECRET_KEY

Or set password_field to null and the entire file content is used as the password.

Usage

Run a backup

bash scripts/backup.sh /path/to/backup-config.json

Set up daily cron

echo "0 3 * * * bash $(pwd)/scripts/backup.sh /path/to/backup-config.json" | crontab -

Delivery Methods

  • email — Sends encrypted archive as email attachment via SMTP
  • local — Saves archive to a local directory

SMTP password: set via the environment variable named in smtp_pass_env, or put it directly in smtp_pass (less secure).

Restore

The backup includes a generated RESTORE.md with step-by-step instructions for restoring onto a fresh OpenClaw installation. The restore guide is customized with the agent's name and configuration.

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-05-12 06:00 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Find Skills

root
帮助用户发现和安装智能体技能,当用户询问如「如何做X」、「找X的技能」、「有能做...的吗」等问题时
★ 1,506 📥 565,832
ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 859 📥 339,037
ai-agent

self-improving agent

pskoett
记录自身发现以实现自我改进的技能
★ 4,150 📥 923,880