返回顶部
g

git-crypt-backup

Backup Clawdbot workspace and config to GitHub with git-crypt encryption. Use for daily automated backups or manual backup/restore operations.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
3,161
下载量
2
收藏
概述
安装方式
版本历史

git-crypt-backup

# Git-Crypt Backup Automated backup of Clawdbot workspace (`~/clawd`) and config (`~/.clawdbot`) to GitHub with sensitive files encrypted via git-crypt. ## Setup ### 1. Create GitHub repos (private recommended) ```bash # Create two private repos on GitHub: # - <username>/clawdbot-workspace # - <username>/clawdbot-config ``` ### 2. Initialize git-crypt ```bash # Install git-crypt brew install git-crypt # macOS # apt install git-crypt # Linux # Workspace repo cd ~/clawd git init git-crypt init git remote add origin git@github.com:<username>/clawdbot-workspace.git # Config repo cd ~/.clawdbot git init git-crypt init git remote add origin git@github.com:<username>/clawdbot-config.git ``` ### 3. Configure encryption **Workspace `.gitattributes`:** ``` SOUL.md filter=git-crypt diff=git-crypt USER.md filter=git-crypt diff=git-crypt HEARTBEAT.md filter=git-crypt diff=git-crypt MEMORY.md filter=git-crypt diff=git-crypt memory/** filter=git-crypt diff=git-crypt ``` **Config `.gitattributes`:** ``` clawdbot.json filter=git-crypt diff=git-crypt .env filter=git-crypt diff=git-crypt credentials/** filter=git-crypt diff=git-crypt telegram/** filter=git-crypt diff=git-crypt identity/** filter=git-crypt diff=git-crypt agents/**/sessions/** filter=git-crypt diff=git-crypt nodes/** filter=git-crypt diff=git-crypt ``` **Config `.gitignore`:** ``` *.bak *.bak.* .DS_Store logs/ media/ browser/ subagents/ memory/ update-check.json *.lock ``` ### 4. Export keys (important!) ```bash mkdir -p ~/clawdbot-keys cd ~/clawd && git-crypt export-key ~/clawdbot-keys/workspace.key cd ~/.clawdbot && git-crypt export-key ~/clawdbot-keys/config.key ``` ⚠️ **Store these keys securely** (1Password, iCloud Keychain, USB drive, etc.) ### 5. Initial commit & push ```bash cd ~/clawd && git add -A && git commit -m "Initial backup" && git push -u origin main cd ~/.clawdbot && git add -A && git commit -m "Initial backup" && git push -u origin main ``` ## Daily Backup Run `scripts/backup.sh`: ```bash ~/clawd/skills/git-crypt-backup/scripts/backup.sh ``` Or set up a cron job for automatic daily backups. ## Restore on New Machine ```bash # 1. Clone repos git clone git@github.com:<username>/clawdbot-workspace.git ~/clawd git clone git@github.com:<username>/clawdbot-config.git ~/.clawdbot # 2. Unlock with keys cd ~/clawd && git-crypt unlock /path/to/workspace.key cd ~/.clawdbot && git-crypt unlock /path/to/config.key ``` ## What Gets Encrypted | Repo | Encrypted | Plain | |------|-----------|-------| | workspace | SOUL/USER/HEARTBEAT/MEMORY.md, memory/** | AGENTS.md, IDENTITY.md, TOOLS.md, drafts/** | | config | clawdbot.json, .env, credentials/**, sessions/** | cron/jobs.json, settings/** |

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 git-crypt-backup-1776384849 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 git-crypt-backup-1776384849 技能

通过命令行安装

skillhub install git-crypt-backup-1776384849

下载 Zip 包

⬇ 下载 git-crypt-backup v1.0.0

文件大小: 2.17 KB | 发布时间: 2026-4-17 15:00

v1.0.0 最新 2026-4-17 15:00
Initial release: automated backup for Clawdbot workspace and config with git-crypt encryption

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部