← 返回 Skills 市场
geoffguides

Complete Agent Backup

作者 geoffguides · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
100
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install complete-agent-backup
功能描述
Multi-platform backup and restore for Hermes Agent and OpenClaw. Backs up configuration, memories, skills, sessions, and workspace. Features: optional encryp...
使用说明 (SKILL.md)

Hermes Backup

Universal backup and restore for AI agent platforms. Works with Hermes Agent and OpenClaw.

What Makes This Different

  • Multi-platform — Works with both Hermes (~/.hermes/) and OpenClaw (~/.openclaw/)
  • Optional encryption — Password-protect your backups (AES-256)
  • Optional cloud — Set up S3, Google Drive, or Dropbox if you want off-site storage
  • Flexible backups — Full or incremental, your choice
  • Smart retention — Keep last N backups, or N days, or max N GB
  • Integrity checking — Verify backups before trusting them
  • Web UI — Browser-based management with progress bars

Installation

# Via ClawMart (recommended)
clawmart install hermes-backup

# Or manual
git clone https://github.com/yourname/hermes-backup
chmod +x hermes-backup/scripts/*.sh

Quick Start

# Create your first backup
hermes-backup create

# Or with the agent
"Create a backup of my agent"

Commands

Command Description
hermes-backup create Create backup (full or incremental)
hermes-backup restore \x3Cfile> Restore from backup
hermes-backup serve Start web UI
hermes-backup config Interactive configuration
hermes-backup cloud setup Configure cloud storage
hermes-backup list Show all backups
hermes-backup verify \x3Cfile> Check backup integrity
hermes-backup schedule Set up automatic backups

What Gets Backed Up

Hermes Agent Structure

Component Path Contents
Config ~/.hermes/config.yaml All settings, API keys
Environment ~/.hermes/.env API keys, secrets
Identity ~/.hermes/SOUL.md Agent personality
Memory ~/.hermes/memories/ Long-term memories
Sessions ~/.hermes/sessions/ Conversation history
Skills ~/.hermes/skills/ Installed skills
State ~/.hermes/state.db Database
Workspace ~/.openclaw/workspace/ Cross-platform workspace

OpenClaw Structure

Component Path Contents
Config ~/.openclaw/openclaw.json Gateway, models, channels
Workspace ~/.openclaw/workspace/ Agent files, skills
Credentials ~/.openclaw/credentials/ Channel pairing state
Sessions ~/.openclaw/agents/main/sessions/ Chat history
Skills ~/.openclaw/skills/ System skills
Cron ~/.openclaw/cron/ Scheduled jobs

Configuration

Interactive Setup

hermes-backup config

This walks you through:

  1. Platform detection — Hermes or OpenClaw (auto-detected)
  2. Backup location — Where to save archives
  3. Encryption — Enable password protection? (optional)
  4. Backup type — Full or incremental?
  5. Retention — How many backups to keep?
  6. Cloud — Set up cloud storage? (optional)

Config File (~/.hermes-backup/config.yaml)

platform: auto  # auto, hermes, or openclaw

backup:
  location: ~/backups/hermes
  type: full  # full or incremental
  compression: gzip  # gzip, bzip2, or none
  encryption: false  # true/false
  
retention:
  strategy: count  # count, days, or size
  keep_count: 10   # keep last N backups
  keep_days: 30    # or keep for N days
  max_size_gb: 5   # or max total size

incremental:
  enabled: false
  base_backup: null  # reference full backup
  
cloud:
  enabled: false
  provider: null  # s3, gdrive, dropbox
  # Provider-specific settings added during setup
  
integrity:
  verify_after_backup: true
  checksum_algorithm: sha256

Creating Backups

Full Backup (Default)

hermes-backup create
# → ~/backups/hermes/hermes-backup_20260326_143022.tar.gz

Incremental Backup

# First, create a base backup
hermes-backup create --full --tag base-2026-03-26

# Then incremental backups reference the base
hermes-backup create --incremental --base base-2026-03-26

Encrypted Backup

hermes-backup create --encrypt
# Prompts for password (not echoed)

⚠️ Warning: If you lose the encryption password, the backup is unrecoverable. Store it in a password manager.

With Cloud Upload

hermes-backup create --cloud-upload
# Creates backup locally, then uploads to configured cloud storage

Restoring Backups

Standard Restore

# Always dry-run first
hermes-backup restore ~/backups/hermes/hermes-backup_20260326_143022.tar.gz --dry-run

# If it looks good, apply
hermes-backup restore ~/backups/hermes/hermes-backup_20260326_143022.tar.gz

Encrypted Restore

hermes-backup restore ~/backups/hermes/hermes-backup_20260326_143022.tar.gz.enc
# Prompts for password

Selective Restore

# Restore only specific components
hermes-backup restore backup.tar.gz --components workspace,skills

Cloud Storage Setup

Amazon S3

hermes-backup cloud setup s3

# Prompts for:
# - AWS Access Key ID
# - AWS Secret Access Key  
# - Bucket name
# - Region (optional, defaults to us-east-1)

Google Drive

hermes-backup cloud setup gdrive

# Opens browser for OAuth authentication
# Or provides manual token setup for headless

Dropbox

hermes-backup cloud setup dropbox

# OAuth flow or manual token

Testing Cloud Connection

hermes-backup cloud test
# Verifies credentials and uploads a test file

Scheduling Automatic Backups

Via Cron

hermes-backup schedule

# Interactive setup:
# - How often? (daily, weekly, hourly)
# - What time?
# - Full or incremental?
# - Cloud upload?

Manual Cron Entry

# Add to crontab
0 3 * * * /usr/local/bin/hermes-backup create --quiet --cloud-upload
# Daily at 3am, quiet mode, upload to cloud

Web UI

hermes-backup serve --port 7373 --token YOUR_TOKEN

# Opens browser UI at http://localhost:7373
# Features:
# - Create backups (click button)
# - Download backups
# - Upload and restore
# - View backup history
# - Configure settings
# - Progress bars for operations

Integrity Verification

# Verify a specific backup
hermes-backup verify ~/backups/hermes/hermes-backup_20260326_143022.tar.gz

# Check all backups
hermes-backup verify --all

# Results:
# ✓ Backup is valid and restorable
# ✗ Backup is corrupted or incomplete

Listing Backups

hermes-backup list

# Output:
# BACKUP NAME                           SIZE     DATE       TYPE   ENCRYPTED  CLOUD
# hermes-backup_20260326_143022.tar.gz  45MB     2026-03-26 full   no         yes
# hermes-backup_20260325_090015.tar.gz  2MB      2026-03-25 incr   yes        no

Migration Between Platforms

Hermes → OpenClaw

# On Hermes machine
hermes-backup create --platform hermes

# Transfer file to OpenClaw machine
scp backup.tar.gz user@newserver:~/

# On OpenClaw machine
hermes-backup restore backup.tar.gz --platform openclaw

OpenClaw → Hermes

Same process, reverse direction.

Security Considerations

Backup Archive Contents

Backups contain highly sensitive data:

  • API keys (OpenAI, Anthropic, ElevenLabs, etc.)
  • Bot tokens (Telegram, Discord, etc.)
  • Session data
  • Personal memories/conversations

Security Best Practices

  1. File Permissions

    • Backups created with chmod 600 (owner only)
    • Never chmod 777 a backup
  2. Storage

    • Keep local backups in encrypted disk/VeraCrypt
    • Cloud backups: use provider encryption at rest
    • Never commit backups to git
  3. Transmission

    • Use scp/sftp, not email
    • Cloud uploads use HTTPS
    • Web UI uses token authentication
  4. Encryption Password

    • Use a password manager (1Password, Bitwarden)
    • Minimum 12 characters
    • Mix of uppercase, lowercase, numbers, symbols
    • Never reuse passwords
  5. Rotation

    • Old backups may contain old API keys
    • Rotate API keys periodically
    • Delete backups older than needed

Troubleshooting

"Permission denied" on backup

# Check directory permissions
ls -la ~/backups/hermes/

# Fix
chmod 700 ~/backups/hermes/

"Backup is corrupted"

# Try to verify
hermes-backup verify backup.tar.gz

# If corrupted, check disk space
df -h

# Check for disk errors
fsck /dev/sda1  # (unmount first)

"Cloud upload failed"

# Test connection
hermes-backup cloud test

# Check credentials
hermes-backup cloud status

# Re-configure if needed
hermes-backup cloud setup s3

Restore fails halfway

# Auto-backup is created before restore
# Check /tmp/hermes-pre-restore-*.tar.gz

# Restore from auto-backup
hermes-backup restore /tmp/hermes-pre-restore_TIMESTAMP.tar.gz

Scripts Reference

scripts/backup.sh

Main backup script. Creates .tar.gz archive with MANIFEST.json.

scripts/restore.sh

Restores from archive. Always dry-runs first. Creates pre-restore backup.

scripts/serve.sh

Starts web UI server. Requires --token for security.

scripts/verify.sh

Verifies backup integrity using checksums.

scripts/cloud-upload.sh

Uploads backup to configured cloud storage.

scripts/config.sh

Interactive configuration wizard.

Version History

v1.0.0

  • Initial release
  • Multi-platform support (Hermes + OpenClaw)
  • Full and incremental backups
  • Optional encryption (AES-256)
  • Optional cloud storage (S3, Google Drive, Dropbox)
  • Web UI for browser-based management
  • Integrity verification
  • Flexible retention policies
  • Migration support between platforms

License

MIT-0 — Free to use, modify, and redistribute. No attribution required.


Built for the MyClaw.ai ecosystem — the open AI personal assistant platform.

安全使用建议
This package is a local backup/restore tool and the scripts do what a backup tool should: copy configs, sessions, skills, databases, and credential files under ~/.hermes and ~/.openclaw. Before installing or running it, do the following: 1) Review the cloud-upload code (cloud-config.sh or any cloud upload implementation) — the SKILL.md mentions cloud/OAuth uploads but the shipped config script notes cloud setup is not yet implemented; if cloud upload is enabled later it could send all your secrets off-host. 2) Understand backups contain secrets (./.env, auth.json, openclaw.json, credentials/) — keep archives encrypted (use --encrypt) and store them in a trusted location; verify encryption is implemented correctly. 3) Prefer running in --dry-run and inspect created archives in a safe temporary folder before restoring. 4) Check file permissions after creating backups (the scripts set chmod 600 on archives and config, but verify). 5) Because SKILL.md advertises features (web UI, cloud wizard) not in the scripts, treat the release as incomplete and avoid enabling any automated cloud/scheduling hooks until you can audit that code. 6) If you need higher assurance, run the scripts in a controlled environment or sandbox and/or ask the author for the missing implementation details (web UI, cloud upload) and a provenance link (repository/homepage).
功能分析
Type: OpenClaw Skill Name: complete-agent-backup Version: 1.0.0 The skill bundle provides comprehensive backup and restore functionality that specifically targets highly sensitive data, including API keys, environment variables (.env), and session credentials from the Hermes and OpenClaw platforms (scripts/backup.sh). While these actions are consistent with the stated purpose, the tool's ability to aggregate all agent secrets into a single archive, combined with features for cloud upload and a web-based management UI (referenced in SKILL.md), presents a significant security risk. The lack of the actual web server implementation (serve.sh) and cloud upload logic (cloud-upload.sh) in the provided files prevents a full safety assessment of the most high-risk components, which could potentially be used for data exfiltration or unauthorized remote access.
能力评估
Purpose & Capability
The name/description (backup/restore for Hermes and OpenClaw) align with the included scripts: backup.sh, restore.sh, and config.sh operate on ~/.hermes and ~/.openclaw and include options for encryption, incremental/full backups, and creating manifests. However SKILL.md advertises features (web-based management UI, a full cloud setup wizard/OAuth flows) that are not present or are explicitly marked as 'not yet implemented' in config.sh; this is an inconsistency between claims and actual capability.
Instruction Scope
Runtime instructions and scripts operate on user home data (config files, .env, credentials directories, session histories, installed skills, state.db) — this is expected for a backup tool but means the skill reads and archives highly sensitive secrets (API keys, tokens, auth.json, .env). The scripts use standard local commands (tar, rsync, openssl, pkill, python3). They create temporary archives and a safety pre-restore backup. No unexpected external endpoints are shown in the provided scripts, but the cloud-upload path is truncated/unclear; enabling cloud upload could transmit sensitive data externally.
Install Mechanism
No install spec is provided (instruction-only with included shell scripts). Nothing is downloaded during install in the package itself. This is lower-risk than arbitrary remote installers, but you must inspect the scripts before running.
Credentials
The skill does not request environment variables or credentials at install, which is appropriate. However, it intentionally reads and copies secret-bearing files (~/.hermes/.env, openclaw.json, credentials directories, auth.json). That behavior is proportional to a backup tool but materially increases risk: any cloud upload or misconfigured backup location could expose API keys and tokens. SKILL.md shows cloud setup flows asking for AWS/GDrive/Dropbox credentials; config.sh indicates cloud setup is not implemented yet, so it's unclear how and where those credentials would be used or stored.
Persistence & Privilege
The skill is not always-enabled and is user-invocable. It writes a self config file under ~/.hermes-backup and creates archives in user-specified locations. It does not request system-wide privileges or modify other skills. Scheduling features are mentioned but the provided scripts do not automatically register persistent system-wide services.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install complete-agent-backup
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /complete-agent-backup 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Hermes Backup — a universal backup and restore tool for Hermes Agent and OpenClaw. - Supports full and incremental backups with flexible retention policies. - Optional AES-256 encryption for secure, password-protected archives. - Cloud storage integration: S3, Google Drive, and Dropbox. - Integrity verification for backup files. - Web-based management UI for creating, restoring, and configuring backups. - Interactive setup and scheduling for automatic backups. - Cross-platform: compatible with both Hermes and OpenClaw installations.
元数据
Slug complete-agent-backup
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Complete Agent Backup 是什么?

Multi-platform backup and restore for Hermes Agent and OpenClaw. Backs up configuration, memories, skills, sessions, and workspace. Features: optional encryp... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 100 次。

如何安装 Complete Agent Backup?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install complete-agent-backup」即可一键安装,无需额外配置。

Complete Agent Backup 是免费的吗?

是的,Complete Agent Backup 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Complete Agent Backup 支持哪些平台?

Complete Agent Backup 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Complete Agent Backup?

由 geoffguides(@geoffguides)开发并维护,当前版本 v1.0.0。

💬 留言讨论