← 返回 Skills 市场
harvnk

Daily Backup System

作者 Harvnk · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
210
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install daily-backup-system
功能描述
Automates daily compressed backups of OpenClaw configs, workspaces, env files, and scripts with 7-day rotation and a step-by-step restore guide.
使用说明 (SKILL.md)

Daily Backup System

Automated daily backup of your entire OpenClaw setup with rotation and restore guide.

Use when: you want automatic backups of your OpenClaw configuration, agent workspaces, API keys, scripts, and data — with a one-command restore process.

What it does

Runs daily via cron and creates a compressed backup of:

  • openclaw.json — all agent configs, bindings, channels, crons
  • All agent workspaces (SOUL.md, TOOLS.md, memory/, scripts/)
  • Environment files (.env with API keys)
  • Custom scripts and data pipelines
  • Reverse proxy config (Caddy/Nginx)

Features

  • Compressed tar.gz — typically 200-500MB for a full 12-agent setup
  • 7-day rotation — keeps last 7 backups, auto-deletes older ones
  • Restore guide — auto-generated RESTORE_GUIDE.md with step-by-step instructions
  • Excludes noise — skips node_modules, pycache, session transcripts (too large, regenerated)
  • Zero downtime — runs in background, doesn't interrupt the gateway

Setup

  1. Copy daily_backup.sh to your scripts directory
  2. Edit the workspace paths to match your setup
  3. Add cron: 0 3 * * * /bin/bash /path/to/daily_backup.sh >> /tmp/backup.log 2>&1

Restore (disaster recovery)

# On a fresh VPS
curl -fsSL https://openclaw.ai/install.sh | bash
cd / && tar xzf openclaw-full-backup-YYYY-MM-DD.tar.gz
openclaw gateway start

Full system restored in under 10 minutes.

Tags

backup, disaster-recovery, devops, security, automation, cron, restore

安全使用建议
Do not install or run this as-is. Key concerns: (1) the backup script referenced (daily_backup.sh) is missing — request the script and review its contents before running; (2) the restore step runs an unsigned remote installer with 'curl | bash' — never run remote install scripts without verifying source and checksums; (3) the instructions archive '.env' and proxy configs (API keys and secrets) in plain tarballs — store backups encrypted and limit access; (4) extracting a full-system tarball at / can overwrite critical files — test restores in an isolated VM before using on production; (5) prefer documented, auditable backup scripts (include the script and its hash), add encryption (gpg or rclone to secure remote storage), and explicit file-permission guidance. Ask the publisher for the missing daily_backup.sh, a checksum and source for the restore install.sh, and an option to encrypt or exclude secrets before deploying.
功能分析
Type: OpenClaw Skill Name: daily-backup-system Version: 1.0.0 The bundle provides documentation for a daily backup and disaster recovery system for OpenClaw. It outlines the backup of sensitive files including 'openclaw.json' and '.env' files (API keys) into a compressed archive with a 7-day rotation. While the core script 'daily_backup.sh' is missing from the provided files and the instructions include high-risk administrative actions like cron job setup and a 'curl | bash' restore command (pointing to openclaw.ai), these behaviors are transparently documented and strictly aligned with the stated purpose of system maintenance.
能力评估
Purpose & Capability
The SKILL.md describes a 'daily_backup.sh' that the user should copy and run, but no script or code file is included in the skill bundle. The restore step fetches and runs a remote installer (https://openclaw.ai/install.sh) even though no install spec exists. Missing script + external restore dependency are incoherent with an instruction-only skill that otherwise declares no installs.
Instruction Scope
The runtime instructions explicitly collect and archive highly sensitive artifacts — openclaw.json (agent configs), all workspaces, and '.env' files with API keys — and advise extracting a full system tarball at / (tar xzf ... in /), which can overwrite system files. They also instruct executing a remote installer via 'curl | bash' during restore. Those actions expand scope beyond simple local backup guidance and introduce significant risk.
Install Mechanism
No install spec in the registry, but the restore guide uses 'curl -fsSL https://openclaw.ai/install.sh | bash' which is equivalent to downloading and executing arbitrary remote code. This is high-risk (download-and-exec) from an external domain not proven in the package, and no checksums or verification are provided.
Credentials
The skill requests no credentials but instructs users to back up '.env' files containing API keys and reverse-proxy configs. Storing these sensitive secrets in unencrypted tarballs with 7-day rotation is disproportionate without guidance on encryption, access control, or secure storage. Declaring no required env vars is inconsistent with the claim to handle API keys safely.
Persistence & Privilege
The skill does not set 'always: true' and is user-invocable only; however it instructs the user to create a persistent cron job on the host (0 3 * * * ...), which grants ongoing file-access capability to the provided script. The skill itself does not request elevated platform privileges, but the suggested cron-based persistence merits user review before deployment.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install daily-backup-system
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /daily-backup-system 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the Daily Backup System for OpenClaw. - Automates daily, compressed (tar.gz) backups of all agent configs, workspaces, API keys, scripts, and custom data. - Implements 7-day backup rotation with automatic cleanup of older archives. - Skips unnecessary files to keep backups efficient (e.g., node_modules, __pycache__, large session transcripts). - Generates a RESTORE_GUIDE.md with step-by-step recovery instructions. - Designed for zero downtime: runs seamlessly in the background. - Includes clear setup and disaster recovery instructions.
元数据
Slug daily-backup-system
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Daily Backup System 是什么?

Automates daily compressed backups of OpenClaw configs, workspaces, env files, and scripts with 7-day rotation and a step-by-step restore guide. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 210 次。

如何安装 Daily Backup System?

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

Daily Backup System 是免费的吗?

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

Daily Backup System 支持哪些平台?

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

谁开发了 Daily Backup System?

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

💬 留言讨论