# Send Openclaw Backup Optimized to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "openclaw-backup-optimized",
    "name": "Openclaw Backup Optimized",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/cccarv82/openclaw-backup-optimized",
    "canonicalUrl": "https://clawhub.ai/cccarv82/openclaw-backup-optimized",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/openclaw-backup-optimized",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-backup-optimized",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/backup.js",
      "scripts/package.json",
      "references/CONFIG.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "openclaw-backup-optimized",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T17:13:29.121Z",
      "expiresAt": "2026-05-07T17:13:29.121Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-backup-optimized",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-backup-optimized",
        "contentDisposition": "attachment; filename=\"openclaw-backup-optimized-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "openclaw-backup-optimized"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/openclaw-backup-optimized"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/openclaw-backup-optimized",
    "downloadUrl": "https://openagent3.xyz/downloads/openclaw-backup-optimized",
    "agentUrl": "https://openagent3.xyz/skills/openclaw-backup-optimized/agent",
    "manifestUrl": "https://openagent3.xyz/skills/openclaw-backup-optimized/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/openclaw-backup-optimized/agent.md"
  }
}
```
## Documentation

### What this skill does

Use this skill to install, configure, and run the optimized OpenClaw backup workflow:

Full snapshot of ~/.openclaw
Workspace archive split into ~90MB parts + SHA256
Rich Discord notification (summary + restore steps)
Retention of last N reports

### Files

Script: scripts/backup.js (cross-platform)
Reference config: references/CONFIG.md

### Install / Setup

Copy the script into your tools folder:

cp scripts/backup.js ~/.openclaw/workspace/tools/openclaw-backup.js

Configure env vars (see references/CONFIG.md):

macOS/Linux (bash/zsh):

export OPENCLAW_HOME="$HOME/.openclaw"
export OPENCLAW_BACKUP_DIR="$HOME/.openclaw-backup"
export BACKUP_REPO_URL="https://github.com/your/repo.git"
export BACKUP_CHANNEL_ID="1234567890"
export BACKUP_TZ="America/Sao_Paulo"
export BACKUP_MAX_HISTORY=7

Windows (PowerShell):

$env:OPENCLAW_HOME="$env:USERPROFILE\\.openclaw"
$env:OPENCLAW_BACKUP_DIR="$env:USERPROFILE\\.openclaw-backup"
$env:BACKUP_REPO_URL="https://github.com/your/repo.git"
$env:BACKUP_CHANNEL_ID="1234567890"
$env:BACKUP_TZ="America/Sao_Paulo"
$env:BACKUP_MAX_HISTORY="7"

Run once:

node ~/.openclaw/workspace/tools/openclaw-backup.js

Create cron (OpenClaw cron runs in the gateway environment):

openclaw cron add --name "openclaw-backup-daily" \\
  --cron "0 5,10,15,20 * * *" --tz "America/Sao_Paulo" \\
  --exec "node ~/.openclaw/workspace/tools/openclaw-backup.js"

### Restore

Use the restore instructions printed in the backup notification.

### Notes

Excludes noisy session lock/deleted files for smaller diffs.
Requires git and node (>=18).
Uses openclaw message send for notifications (no webhook).
scripts/openclaw-backup.sh is legacy (Linux/macOS) and will be removed; use backup.js.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: cccarv82
- Version: 1.0.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-30T17:13:29.121Z
- Expires at: 2026-05-07T17:13:29.121Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/openclaw-backup-optimized)
- [Send to Agent page](https://openagent3.xyz/skills/openclaw-backup-optimized/agent)
- [JSON manifest](https://openagent3.xyz/skills/openclaw-backup-optimized/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/openclaw-backup-optimized/agent.md)
- [Download page](https://openagent3.xyz/downloads/openclaw-backup-optimized)