# Send openclaw-backup-guide 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. Then review README.md for any prerequisites, environment setup, or post-install checks. 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. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "openclaw-backup-guide",
    "name": "openclaw-backup-guide",
    "source": "tencent",
    "type": "skill",
    "category": "效率提升",
    "sourceUrl": "https://clawhub.ai/lancelot3777-svg/openclaw-backup-guide",
    "canonicalUrl": "https://clawhub.ai/lancelot3777-svg/openclaw-backup-guide",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/openclaw-backup-guide",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-backup-guide",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "backup-db.js",
      "backup-nas.sh",
      "README.md",
      "skill.json",
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "openclaw-backup-guide",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T21:34:17.750Z",
      "expiresAt": "2026-05-08T21:34:17.750Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-backup-guide",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-backup-guide",
        "contentDisposition": "attachment; filename=\"openclaw-backup-guide-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "openclaw-backup-guide"
      },
      "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-guide"
    },
    "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-guide",
    "downloadUrl": "https://openagent3.xyz/downloads/openclaw-backup-guide",
    "agentUrl": "https://openagent3.xyz/skills/openclaw-backup-guide/agent",
    "manifestUrl": "https://openagent3.xyz/skills/openclaw-backup-guide/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/openclaw-backup-guide/agent.md"
  }
}
```
## Documentation

### Backup Automation Skill

Automated backup system for OpenClaw workspaces with database, NAS, and GitHub integration.

### What It Does

This skill provides automated hourly backups:

Database backup to SQLite
NAS sync via rsync
Git commit + push to GitHub for version control

Perfect for maintaining workspace continuity and disaster recovery.

### 1. Configure NAS Target (Optional)

Edit backup-nas.sh to set your NAS mount point:

NAS_PATH="/path/to/your/nas/backup"

If you don't use NAS, the script will skip that step gracefully.

### 2. Set Up Cron Job

Add to your crontab for hourly backups:

0 * * * * cd /path/to/workspace && node scripts/backup-db.js; bash scripts/backup-nas.sh; git add -A && git commit -m "Hourly backup: $(date '+%Y-%m-%d %H:%M %Z')" && git push origin main

OR use OpenClaw's built-in cron:

openclaw cron add --schedule "0 * * * *" --task "Hourly workspace backup" --command "cd /path/to/workspace && node scripts/backup-db.js && bash scripts/backup-nas.sh && git add -A && git commit -m 'Auto backup' && git push"

### 3. GitHub Authentication

Ensure you have:

Git configured with your credentials
GitHub SSH key added (or HTTPS token set)
Remote origin configured: git remote -v

### Manual Backup

cd /path/to/your/workspace
node backup-db.js
bash backup-nas.sh
git add -A && git commit -m "Manual backup" && git push

### Check Backup Status

# Check last backup commit
git log --oneline -1

# Check database backup
ls -lh workspace.db*

# Check NAS sync
ls -lh /your/nas/path/

### Files

backup-db.js - Node.js script for database backup
backup-nas.sh - Bash script for NAS rsync
skill.json - Skill metadata
SKILL.md - This file (usage guide)
README.md - Overview

### Requirements

Node.js 18+ (for backup-db.js)
Git (for version control)
rsync (for NAS sync, optional)
GitHub repository (for remote storage)

### Change Backup Frequency

Edit the cron schedule:

Every hour: 0 * * * *
Every 30 min: */30 * * * *
Every 6 hours: 0 */6 * * *
Daily at 3am: 0 3 * * *

### Add Custom Backup Logic

Extend backup-db.js with additional backup targets:

// Add S3 sync, Dropbox upload, etc.

### Backup Retention

To limit backup history in Git:

# Squash old commits periodically
git rebase -i HEAD~100

### Troubleshooting

Backup not running:

Check cron logs: tail -f /var/log/cron
Verify script permissions: chmod +x backup-nas.sh

Git push fails:

Verify SSH key: ssh -T git@github.com
Check remote: git remote -v

NAS sync issues:

Test rsync manually: rsync -av /source /destination
Check mount: mount | grep nas

### Security Notes

Database backups may contain sensitive data
Ensure your GitHub repo is private if storing sensitive info
NAS should be on a secure network (Tailscale/VPN recommended)
Consider encryption for sensitive backups

### License

MIT - Use freely, modify as needed.

### Author

Created by Lance (lancelot3777) for OpenClaw workspace management.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: lancelot3777-svg
- Version: 1.0.0
## 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-05-01T21:34:17.750Z
- Expires at: 2026-05-08T21:34:17.750Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/openclaw-backup-guide)
- [Send to Agent page](https://openagent3.xyz/skills/openclaw-backup-guide/agent)
- [JSON manifest](https://openagent3.xyz/skills/openclaw-backup-guide/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/openclaw-backup-guide/agent.md)
- [Download page](https://openagent3.xyz/downloads/openclaw-backup-guide)