Token导航 LogoToken导航TokenDH.com
效率只读clawhub未标认证来源可访问clear审计提醒

backup-openclaw-config备份 OpenClaw 配置

Agent Skill

backup-openclaw-config 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,345

周安装

138

GitHub Stars

公开资料未说明

下载量

1,093
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:backup-openclaw-config(备份 OpenClaw 配置)
来源仓库:https://github.com/alexjunanjing-2/backup-openclaw-config
安装命令:
openclaw skills install backup-openclaw-config
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install backup-openclaw-config

简介

backup-openclaw-config 用于补充效率相关能力,适合在 OpenClaw 中让 Agent 承接效率相关任务时使用。

  • 适用于 OpenClaw 配置文件备份与恢复场景。
  • 可加密压缩配置并在升级前自动保存当前状态。
  • 安装命令:openclaw skills install backup-openclaw-config,需确认 ~/.openclaw 目录访问权限。
  • 注意备份文件应存储于安全位置,避免明文密码泄露。

SKILL.md

name
backup-openclaw-config
description
Backup and restore OpenClaw configuration files. Use when backing up OpenClaw settings before upgrades, transferring configuration to another machine, restoring from a previous backup, or preparing for system maintenance.

Backup OpenClaw Configuration

Overview

This skill provides automated backup and restore functionality for all OpenClaw configuration files. It creates timestamped archives containing your complete OpenClaw setup, including main configuration, workspace, skills, and user data.

What gets backed up:

  • ~/.openclaw/ - Main configuration
  • ~/.config/openclaw/ - System-level configuration
  • ~/.local/share/openclaw/ - Local data
  • ~/.openclaw/workspace/ - Workspace, skills, and memory

Quick Start

Backup Your Configuration

Run the backup script:

~/.openclaw/workspace/skills/backup-openclaw-config/scripts/backup_openclaw.sh [output-directory]

Example:

# Backup to default location ($HOME/backups/openclaw)
~/.openclaw/workspace/skills/backup-openclaw-config/scripts/backup_openclaw.sh

# Backup to custom location
~/.openclaw/workspace/skills/backup-openclaw-config/scripts/backup_openclaw.sh ~/my-backups

Output:

  • Creates openclaw_backup_YYYYMMDD_HHMMSS.tar.gz archive
  • Creates openclaw_backup_YYYYMMDD_HHMMSS.info metadata file
  • Shows backup summary with file list and archive size
  • Automatically deletes backups older than 15 days to manage disk space

Restore from Backup

Run the restore script:

~/.openclaw/workspace/skills/backup-openclaw-config/scripts/restore_openclaw.sh <backup-archive.tar.gz>

Example:

~/.openclaw/workspace/skills/backup-openclaw-config/scripts/restore_openclaw.sh \
  ~/backups/openclaw/openclaw_backup_20260306_095000.tar.gz

Process:

  1. Shows backup information from .info file
  2. Lists all files that will be restored
  3. Requires confirmation before proceeding
  4. Backs up existing files with .bak extension
  5. Restores configuration to original locations

After restore:

# Restart OpenClaw Gateway to apply changes
systemctl --user restart openclaw-gateway

Workflow

Backup Workflow

  1. Check prerequisites

- Verify backup directory exists or can be created - Check if OpenClaw directories exist

  1. Create backup structure

- Generate timestamp for unique backup name - Create temporary directory for staging

  1. Copy configuration files

- Backup ~/.openclaw/ (main config) - Backup ~/.config/openclaw/ (system config) - Backup ~/.local/share/openclaw/ (local data) - Skip directories that don't exist (with warning)

  1. Create archive

- Compress all files into .tar.gz archive - Create .info file with metadata (timestamp, hostname, user, size)

  1. Report results

- Show archive location and size - Display restore command - Warn if any directories were missing

Restore Workflow

  1. Validate backup

- Check if archive file exists - Display backup information from .info file - List contents of archive

  1. Safety confirmation

- Show warning about overwriting current config - List all files that will be restored - Require explicit "yes" confirmation

  1. Backup existing files

- Rename existing directories to .bak - Preserve current configuration before overwriting

  1. Extract and restore

- Extract archive to temporary directory - Move files to original locations - Restore ~/.openclaw/, ~/.config/openclaw/, ~/.local/share/openclaw/

  1. Complete and notify

- Show restore completion message - Display restart command for Gateway - Note that .bak files were created

Use Cases

Before Upgrade

# Backup before updating OpenClaw
~/.openclaw/workspace/skills/backup-openclaw-config/scripts/backup_openclaw.sh

# Then upgrade
openclaw update

Transfer to New Machine

# On old machine: create backup
~/.openclaw/workspace/skills/backup-openclaw-config/scripts/backup_openclaw.sh

# Transfer backup archive to new machine (scp, rsync, etc.)
scp ~/backups/openclaw/openclaw_backup_*.tar.gz user@new-machine:~/

# On new machine: restore
~/.openclaw/workspace/skills/backup-openclaw-config/scripts/restore_openclaw.sh \
  ~/backups/openclaw/openclaw_backup_*.tar.gz

Disaster Recovery

# Restore from backup after system failure
~/.openclaw/workspace/skills/backup-openclaw-config/scripts/restore_openclaw.sh \
  /path/to/backup/openclaw_backup_20260306.tar.gz

# Restart services
systemctl --user restart openclaw-gateway

Configuration Locations

For detailed information about what gets backed up, see config-locations.md.

Summary:

  • Main config: ~/.openclaw/ - Gateway config, extensions, tokens
  • Workspace: ~/.openclaw/workspace/ - Skills, memory, user data
  • System config: ~/.config/openclaw/ - systemd services, preferences
  • Local data: ~/.local/share/openclaw/ - Cache, runtime data

Best Practices

Regular Backups

Create backups regularly, especially after:

  • Installing new skills
  • Modifying configuration
  • Adding extensions
  • Important workspace changes

Secure Storage

  • Backup archives contain sensitive data (tokens, credentials)
  • Store backups in secure location
  • Consider encrypting with gpg for sensitive environments
  • Don't share backup archives publicly

Testing Backups

After creating a backup, verify it:

# Test extraction to temporary location
tar -tzf backup.tar.gz | head

# Verify critical files are present
tar -tzf backup.tar.gz | grep -E "(config.json|AGENTS.md|MEMORY.md)"

Troubleshooting

Permission Denied

If you see permission errors:

# Ensure scripts are executable
chmod +x ~/.openclaw/workspace/skills/backup-openclaw-config/scripts/*.sh

# Ensure backup directory is writable
mkdir -p ~/backups/openclaw
chmod 755 ~/backups/openclaw

Gateway Won't Start After Restore

If Gateway fails to start after restore:

# Check Gateway logs
journalctl --user -u openclaw-gateway -n 50

# Restore from .bak if needed
mv ~/.openclaw ~/.openclaw.bad
mv ~/.openclaw.bak ~/.openclaw

systemctl --user restart openclaw-gateway

Missing Directories

The backup script gracefully handles missing directories:

  • Skips directories that don't exist
  • Shows warning for each missing directory
  • Still creates valid backup with available data

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

87.72%
按下载量换算959

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills