louzhixian

Git-Crypt Backup

IT Ops & Securityv1.0.0
By louzhixianUpdated 2026-05-18git-crypt-backup@clawhub_louzhixian/git-crypt-backup
Server OpsDevOps#Backup#Git#GitHub

According to AlphaMoat, as of 2026-09, Git-Crypt Backup has 4,630 downloads and 2 stars — ranked #2,059 of 5,078 AI skills overall, and #108 of 264 in IT Ops & Security.

Installs
214
Downloads
4.6K
Stars
2
Overall Rank
#2,059
Top 41% overall · Top 41% in IT Ops & Security
PlatformInstallsDownloadsStarsComments
ClawHub ↗1534.6K2-
SkillHub ↗2144.6K2—

Platforms count differently and update at different times.

What this skill does

The skill describes automated or manual backup and restore workflows, storing workspace and configuration files in GitHub and encrypting sensitive files. Repository and encryption setup are required; this description does not mean any data was backed up or restored. GitHub receives the backup repository contents; verify the destination and git-crypt setup before pushing, and never include secrets in plaintext.

Profile published 2026-10-27

What you can do with it

  • Plan a workspace backup workflow
  • Organize encrypted backup and restore steps

When to use it

  • When planning backups for a Clawdbot workspace
  • When reviewing encrypted backup setup and recovery

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Explain how to back up this workspace and encrypt sensitive files
List checks to perform before restoring a backup

Monthly Trend

Downloads4.6K
3.0K3.9K4.7K2026-03 · Downloads 3.2K2026-05 · Downloads 3.8K2026-06 · Downloads 4.0K2026-07 · Downloads 4.2K2026-08 · Downloads 4.4K2026-09 · Downloads 4.6K26-0326-09
Stars2
1232026-03 · Stars 22026-05 · Stars 22026-06 · Stars 22026-07 · Stars 22026-08 · Stars 22026-09 · Stars 226-0326-09

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-094.6K—2
2026-084.4K+4.0%2
2026-074.2K+6.5%2
2026-064.0K+3.8%2
2026-053.8K—2
2026-033.2K—2

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

2.8 KB · ClawHub v1.0.0
---
name: git-crypt-backup
description: Backup Clawdbot workspace and config to GitHub with git-crypt encryption. Use for daily automated backups or manual backup/restore operations.
---

# Git-Crypt Backup

Automated backup of Clawdbot workspace (`~/clawd`) and config (`~/.clawdbot`) to GitHub with sensitive files encrypted via git-crypt.

## Setup
Show all (121 lines)

### 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 [email protected]:<username>/clawdbot-workspace.git

# Config repo
cd ~/.clawdbot
git init
git-crypt init
git remote add origin [email protected]:<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 [email protected]:<username>/clawdbot-workspace.git ~/clawd
git clone [email protected]:<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/** |

Popular in IT Ops & Security

Data month: 2026-09 · Downloads, stars and installs are aggregated monthly from public skill registries (ClawHub, SkillHub). See methodology.