Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

quick-backup-restore快速备份恢复

Agent Skill

quick-backup-restore 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

14,340

周安装

616

GitHub Stars

1

下载量

5,027
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install quick-backup-restore

简介

quick-backup-restore 是 OpenClaw 的时间机器技能,通过 Restic 每小时自动加密保存增量快照。

  • 适合需要定期备份代理状态、支持历史版本恢复或灾难恢复的场景。
  • 可快速回滚到任意时间点的代理配置与记忆状态,保障数据安全。
  • 安装前需确认存储路径与网络权限,确保 Restic 环境就绪。
  • 建议先测试本地恢复流程,再用于生产环境。

SKILL.md

name
quick-backup-restore
description
Time Clawshine — a simple but powerful time machine for OpenClaw. Hourly encrypted incremental snapshots of your agent's brain via restic. Use when the user asks to backup, restore, roll back, check status, or update.
metadata
{ "openclaw": { "emoji": "⏱", "requires": { "bins": ["bash", "openssl", "curl", "jq"], "auto_install": ["restic", "yq"] }, "install": [{ "id": "setup", "kind": "shell", "label": "Run Time Clawshine setup", "command": "sudo bash {baseDir}/bin/setup.sh" }], "homepage": "https://github.com/marzliak/quick-backup-restore" } }

⏱🦞 Time Clawshine

Your agent just nuked its own memory. Now what?

You spent weeks training your OpenClaw agent — building memory, refining context, tuning personality. Then one bad session wipes it. Gone. And your last "real" backup? Yesterday. Maybe last week.

Time Clawshine gives you a time machine. Every hour, it silently takes an encrypted, incremental snapshot of your agent's brain — memory, sessions, config, everything. Only changed bytes are stored, so it runs in seconds and barely uses disk. When things break (and they will), you roll back to *exactly* the moment before it happened. Not yesterday. Not "the last backup." The exact hour.

One command to install. Zero maintenance. Just works.

sudo bash {baseDir}/bin/setup.sh

Why this exists

ProblemWithout Time ClawshineWith Time Clawshine
Agent overwrites MEMORY.mdHope you saved a copyrestore.sh "2h ago"
Bad session corrupts contextRebuild from scratchRoll back one snapshot
"What changed?"No idearestic diff between any two snapshots
Disk fills upBackup keeps growingDedup — only deltas stored
Something failsYou find out next weekTelegram ping in 60 seconds

What's under the hood

  • Restic — battle-tested backup engine, AES-256 encryption, incremental deduplication
  • 72 snapshots / 3 days of history at hourly resolution (configurable)
  • Disk guard — aborts before filling your disk, alerts via Telegram
  • Integrity checks — automatic restic check every 24 backups
  • Daily digest — Telegram summary with snapshot count, repo size, disk free
  • Update awareness — checks ClawHub daily, never auto-updates
  • Status dashboardbin/status.sh for a full health check at a glance
  • Repository cleanupbin/prune.sh to manually reclaim disk space
  • Self-testbin/test.sh validates backup→restore→verify roundtrip
  • Guided setup — agent reads SETUP_GUIDE.md and walks the user through every option
  • Dry-run modebackup.sh --dry-run to validate without writing
  • Uninstallbin/uninstall.sh for clean removal (preserves data by default)
  • 100% offline — no data leaves your machine (Telegram and update check are opt-in)

Technical reference

Repository: configured in {baseDir}/config.yaml Log: configured in config.yaml under logging.file (rotated weekly via logrotate) Password file: configured in config.yaml under repository.password_file (chmod 600 — back this up separately)


When the user asks to set up or install Time Clawshine

First, read {baseDir}/SETUP_GUIDE.md and walk the user through each step interactively. The guide covers Telegram, frequency, retention, extra paths, disk safety, and repo location. Configure config.yaml based on their answers before running setup.

If the user wants a quick install without customization:

  1. Check if already set up:
   sudo bash {baseDir}/bin/status.sh
  1. Run setup:
   sudo bash {baseDir}/bin/setup.sh

For repo-only setup (no apt-get, no cron, no /usr/local/bin changes):

   sudo bash {baseDir}/bin/setup.sh --no-system-install

For CI/automated setup (skip confirmation prompts):

   sudo bash {baseDir}/bin/setup.sh --assume-yes
  1. Confirm setup succeeded:
   sudo bash {baseDir}/bin/status.sh

When the user asks to run a manual backup

sudo bash {baseDir}/bin/backup.sh

Then confirm with:

sudo bash {baseDir}/bin/status.sh

When the user asks to check backup status or history

Run the status dashboard:

sudo bash {baseDir}/bin/status.sh

Or show the last 20 log lines:

sudo tail -20 "$(yq e '.logging.file' {baseDir}/config.yaml)"

List all snapshots (most recent first):

sudo bash {baseDir}/bin/restore.sh --help
# Or directly:
REPO=$(yq e '.repository.path' {baseDir}/config.yaml)
PASS=$(yq e '.repository.password_file' {baseDir}/config.yaml)
restic -r "$REPO" --password-file "$PASS" snapshots

Show what changed between the two most recent snapshots:

REPO=$(yq e '.repository.path' {baseDir}/config.yaml)
PASS=$(yq e '.repository.password_file' {baseDir}/config.yaml)
SNAPS=$(restic -r "$REPO" --password-file "$PASS" snapshots --json | jq -r '.[-2:][].id')
restic -r "$REPO" --password-file "$PASS" diff $SNAPS

When the user asks to restore or roll back

Interactive restore (recommended — always dry-runs first):

sudo bash {baseDir}/bin/restore.sh

Restore by time (e.g. "roll back 2 hours"):

sudo bash {baseDir}/bin/restore.sh "2h ago" --target /tmp/tc-restore
sudo bash {baseDir}/bin/restore.sh yesterday --target /tmp/tc-restore

Restore a specific file from the latest snapshot:

sudo bash {baseDir}/bin/restore.sh latest --file /root/.openclaw/workspace/MEMORY.md --target /tmp/tc-restore
# Preview the result, then move manually:
# cp /tmp/tc-restore/root/.openclaw/workspace/MEMORY.md /root/.openclaw/workspace/MEMORY.md

Restore a specific snapshot by ID:

sudo bash {baseDir}/bin/restore.sh <snapshot_id>

Always confirm with the user before executing a full restore to /.


When the user asks to check repo integrity

REPO=$(yq e '.repository.path' {baseDir}/config.yaml)
PASS=$(yq e '.repository.password_file' {baseDir}/config.yaml)
restic -r "$REPO" --password-file "$PASS" check

When the user asks to change configuration

Edit {baseDir}/config.yaml with the requested changes (schedule, retention, paths, Telegram credentials), then re-run setup to apply:

sudo bash {baseDir}/bin/setup.sh

When the user asks to customize backup paths

Run the local path analyzer (100% offline — no API calls, no data leaves the machine):

sudo bash {baseDir}/bin/customize.sh

This scans the system for:

  • Extra paths worth backing up (e.g. ~/.ssh, ~/.config, custom scripts)
  • Common junk patterns to exclude (e.g. node_modules, *.log, cache/)

Shows suggestions and asks for confirmation before changing config.yaml.


When the user asks to clean up or free disk space

sudo bash {baseDir}/bin/prune.sh

Options:

  • --keep-last 24 — keep only last 24 snapshots
  • --older-than 7d — remove snapshots older than 7 days
  • --dry-run — preview what would be removed
  • --yes — skip confirmation prompt

When the user asks to run a dry-run or test backup

Dry-run (validates without writing):

sudo bash {baseDir}/bin/backup.sh --dry-run

Self-test (full backup→restore→verify roundtrip in temp directory):

bash {baseDir}/bin/test.sh

Important notes

  • Silent by design: cron/systemd runs every hour at :05 and logs to the configured log file. No output unless there is a failure.
  • Telegram fires only on failure. If the user has not configured bot_token and chat_id, failures are logged only.
  • This is the time machine layer. It protects against "the agent broke something in the last 3 days." It is NOT a disaster recovery backup — that should be handled by an off-VM backup (e.g. restic to a remote server).
  • Password: The restic repository is AES-256 encrypted. The password file location is configured in config.yaml (chmod 600). Losing it means losing access to all snapshots.
  • Never commit secrets.env or .pass files to git. They are excluded via .gitignore.

When the user asks to uninstall or remove Time Clawshine

sudo bash {baseDir}/bin/uninstall.sh

This removes all system artifacts (systemd timer/service, cron, logrotate, binary, lock/marker files) but preserves the backup repository and password file.

To also delete all backup data (irreversible):

sudo bash {baseDir}/bin/uninstall.sh --purge

The source files in the skill directory are never touched — can re-install with sudo bin/setup.sh.


When the user asks to check for updates

Run the status dashboard which includes update info:

sudo bash {baseDir}/bin/status.sh

Or check manually:

clawhub update quick-backup-restore

Note: backup.sh automatically checks for updates once per day (if updates.check: true in config). It logs a warning when a new version is available but never updates automatically.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

98.71%
按下载量换算4,962

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills