Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Automates hourly OpenClaw workspace backups with SQLite database export, optional NAS sync via rsync, and GitHub version control commits and pushes.
Automates hourly OpenClaw workspace backups with SQLite database export, optional NAS sync via rsync, and GitHub version control commits and pushes.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
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.
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.
Automated backup system for OpenClaw workspaces with database, NAS, and GitHub integration.
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.
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.
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"
Ensure you have: Git configured with your credentials GitHub SSH key added (or HTTPS token set) Remote origin configured: git remote -v
cd /path/to/your/workspace node backup-db.js bash backup-nas.sh git add -A && git commit -m "Manual backup" && git push
# Check last backup commit git log --oneline -1 # Check database backup ls -lh workspace.db* # Check NAS sync ls -lh /your/nas/path/
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
Node.js 18+ (for backup-db.js) Git (for version control) rsync (for NAS sync, optional) GitHub repository (for remote storage)
Edit the cron schedule: Every hour: 0 * * * * Every 30 min: */30 * * * * Every 6 hours: 0 */6 * * * Daily at 3am: 0 3 * * *
Extend backup-db.js with additional backup targets: // Add S3 sync, Dropbox upload, etc.
To limit backup history in Git: # Squash old commits periodically git rebase -i HEAD~100
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
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
MIT - Use freely, modify as needed.
Created by Lance (lancelot3777) for OpenClaw workspace management.
Workflow acceleration for inboxes, docs, calendars, planning, and execution loops.
Largest current source with strong distribution and engagement signals.