{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/openclaw-backup-guide",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=openclaw-backup-guide",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "backup-db.js",
      "backup-nas.sh",
      "README.md",
      "skill.json",
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/openclaw-backup-guide",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Backup Automation Skill",
        "body": "Automated backup system for OpenClaw workspaces with database, NAS, and GitHub integration."
      },
      {
        "title": "What It Does",
        "body": "This skill provides automated hourly backups:\n\nDatabase backup to SQLite\nNAS sync via rsync\nGit commit + push to GitHub for version control\n\nPerfect for maintaining workspace continuity and disaster recovery."
      },
      {
        "title": "1. Configure NAS Target (Optional)",
        "body": "Edit backup-nas.sh to set your NAS mount point:\n\nNAS_PATH=\"/path/to/your/nas/backup\"\n\nIf you don't use NAS, the script will skip that step gracefully."
      },
      {
        "title": "2. Set Up Cron Job",
        "body": "Add to your crontab for hourly backups:\n\n0 * * * * 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\n\nOR use OpenClaw's built-in cron:\n\nopenclaw 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\""
      },
      {
        "title": "3. GitHub Authentication",
        "body": "Ensure you have:\n\nGit configured with your credentials\nGitHub SSH key added (or HTTPS token set)\nRemote origin configured: git remote -v"
      },
      {
        "title": "Manual Backup",
        "body": "cd /path/to/your/workspace\nnode backup-db.js\nbash backup-nas.sh\ngit add -A && git commit -m \"Manual backup\" && git push"
      },
      {
        "title": "Check Backup Status",
        "body": "# Check last backup commit\ngit log --oneline -1\n\n# Check database backup\nls -lh workspace.db*\n\n# Check NAS sync\nls -lh /your/nas/path/"
      },
      {
        "title": "Files",
        "body": "backup-db.js - Node.js script for database backup\nbackup-nas.sh - Bash script for NAS rsync\nskill.json - Skill metadata\nSKILL.md - This file (usage guide)\nREADME.md - Overview"
      },
      {
        "title": "Requirements",
        "body": "Node.js 18+ (for backup-db.js)\nGit (for version control)\nrsync (for NAS sync, optional)\nGitHub repository (for remote storage)"
      },
      {
        "title": "Change Backup Frequency",
        "body": "Edit the cron schedule:\n\nEvery hour: 0 * * * *\nEvery 30 min: */30 * * * *\nEvery 6 hours: 0 */6 * * *\nDaily at 3am: 0 3 * * *"
      },
      {
        "title": "Add Custom Backup Logic",
        "body": "Extend backup-db.js with additional backup targets:\n\n// Add S3 sync, Dropbox upload, etc."
      },
      {
        "title": "Backup Retention",
        "body": "To limit backup history in Git:\n\n# Squash old commits periodically\ngit rebase -i HEAD~100"
      },
      {
        "title": "Troubleshooting",
        "body": "Backup not running:\n\nCheck cron logs: tail -f /var/log/cron\nVerify script permissions: chmod +x backup-nas.sh\n\nGit push fails:\n\nVerify SSH key: ssh -T git@github.com\nCheck remote: git remote -v\n\nNAS sync issues:\n\nTest rsync manually: rsync -av /source /destination\nCheck mount: mount | grep nas"
      },
      {
        "title": "Security Notes",
        "body": "Database backups may contain sensitive data\nEnsure your GitHub repo is private if storing sensitive info\nNAS should be on a secure network (Tailscale/VPN recommended)\nConsider encryption for sensitive backups"
      },
      {
        "title": "License",
        "body": "MIT - Use freely, modify as needed."
      },
      {
        "title": "Author",
        "body": "Created by Lance (lancelot3777) for OpenClaw workspace management."
      }
    ],
    "body": "Backup Automation Skill\n\nAutomated backup system for OpenClaw workspaces with database, NAS, and GitHub integration.\n\nWhat It Does\n\nThis skill provides automated hourly backups:\n\nDatabase backup to SQLite\nNAS sync via rsync\nGit commit + push to GitHub for version control\n\nPerfect for maintaining workspace continuity and disaster recovery.\n\nSetup\n1. Configure NAS Target (Optional)\n\nEdit backup-nas.sh to set your NAS mount point:\n\nNAS_PATH=\"/path/to/your/nas/backup\"\n\n\nIf you don't use NAS, the script will skip that step gracefully.\n\n2. Set Up Cron Job\n\nAdd to your crontab for hourly backups:\n\n0 * * * * 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\n\n\nOR use OpenClaw's built-in cron:\n\nopenclaw 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\"\n\n3. GitHub Authentication\n\nEnsure you have:\n\nGit configured with your credentials\nGitHub SSH key added (or HTTPS token set)\nRemote origin configured: git remote -v\nUsage\nManual Backup\ncd /path/to/your/workspace\nnode backup-db.js\nbash backup-nas.sh\ngit add -A && git commit -m \"Manual backup\" && git push\n\nCheck Backup Status\n# Check last backup commit\ngit log --oneline -1\n\n# Check database backup\nls -lh workspace.db*\n\n# Check NAS sync\nls -lh /your/nas/path/\n\nFiles\nbackup-db.js - Node.js script for database backup\nbackup-nas.sh - Bash script for NAS rsync\nskill.json - Skill metadata\nSKILL.md - This file (usage guide)\nREADME.md - Overview\nRequirements\nNode.js 18+ (for backup-db.js)\nGit (for version control)\nrsync (for NAS sync, optional)\nGitHub repository (for remote storage)\nCustomization\nChange Backup Frequency\n\nEdit the cron schedule:\n\nEvery hour: 0 * * * *\nEvery 30 min: */30 * * * *\nEvery 6 hours: 0 */6 * * *\nDaily at 3am: 0 3 * * *\nAdd Custom Backup Logic\n\nExtend backup-db.js with additional backup targets:\n\n// Add S3 sync, Dropbox upload, etc.\n\nBackup Retention\n\nTo limit backup history in Git:\n\n# Squash old commits periodically\ngit rebase -i HEAD~100\n\nTroubleshooting\n\nBackup not running:\n\nCheck cron logs: tail -f /var/log/cron\nVerify script permissions: chmod +x backup-nas.sh\n\nGit push fails:\n\nVerify SSH key: ssh -T git@github.com\nCheck remote: git remote -v\n\nNAS sync issues:\n\nTest rsync manually: rsync -av /source /destination\nCheck mount: mount | grep nas\nSecurity Notes\nDatabase backups may contain sensitive data\nEnsure your GitHub repo is private if storing sensitive info\nNAS should be on a secure network (Tailscale/VPN recommended)\nConsider encryption for sensitive backups\nLicense\n\nMIT - Use freely, modify as needed.\n\nAuthor\n\nCreated by Lance (lancelot3777) for OpenClaw workspace management."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/lancelot3777-svg/openclaw-backup-guide",
    "publisherUrl": "https://clawhub.ai/lancelot3777-svg/openclaw-backup-guide",
    "owner": "lancelot3777-svg",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}