技能详情(站内镜像,无评论)
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v1.0.0
统计:⭐ 0 · 171 · 3 current installs · 3 all-time installs
⭐ 0
安装量(当前) 3
🛡 VirusTotal :良性 · OpenClaw :良性
Package:aiwithabidi/workspace-backup
安全扫描(ClawHub)
- VirusTotal :良性
- OpenClaw :良性
OpenClaw 评估
The skill is internally consistent with its stated purpose (git-based backups to GitHub), contains a simple bash script, and does not ask for unrelated credentials or install external code — but review the cron/path examples and .gitignore assumptions before use.
目的
Name and description match the included behavior: a git-based backup that adds/commits/pushes the OpenClaw workspace. The only required binary is git and the script uses SSH pushes (as documented). Nothing requested or installed is disproportionate to a backup tool.
说明范围
Instructions are mostly scoped to the workspace and git operations. The script will honor optional environment variables OPENCLAW_WORKSPACE, BACKUP_BRANCH, and BACKUP_REMOTE (not declared in requires.env) and will git add -A (so it will stage any file not ignored). The SKILL.md examples contain templated placeholders like {baseDir} in cron lines that are inconsistent and may break if copied as-is. There are no network endpoints or exfiltration…
安装机制
No install step or external downloads; this is instruction-only plus an included shell script. The script is small, not obfuscated, and does not fetch code from external URLs.
证书
The skill does not require credentials in metadata. It implicitly depends on SSH keys configured for git push (documented). It also reads optional env vars (OPENCLAW_WORKSPACE, BACKUP_BRANCH, BACKUP_REMOTE) that are reasonable for configurability but were not listed in requires.env. There is a risk of accidentally committing secrets if they exist in the workspace and aren't covered by .gitignore.
持久
always is false and the skill does not request system-wide changes or modify other skills' configs. Autonomous invocation is permitted by default but is appropriate for a cron-friendly backup tool.
综合结论
Before installing or scheduling this skill: (1) run the script manually once in a disposable/test repo to confirm behavior; (2) ensure your .gitignore excludes any secrets or sensitive files you do not want pushed (the script will git add -A and commit everything not ignored); (3) use a scoped deploy key or a dedicated GitHub repo (avoid pushing to personal repos you rely on); (4) fix the example cron paths/placeholders ({baseDir}) to actual p…
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「Workspace Backup」。简介:Automated workspace backup to GitHub — git-based with auto-generated commit mes…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/aiwithabidi/workspace-backup/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
---
name: workspace-backup
description: Automated workspace backup to GitHub — git-based with auto-generated commit messages, proper .gitignore, and restore procedures. Cron-friendly for hands-free backup. Use for backing up your OpenClaw workspace, skills, memory, and configuration.
homepage: https://www.agxntsix.ai
license: MIT
compatibility: git, GitHub SSH access
metadata: {"openclaw": {"emoji": "ud83dudcbe", "requires": {"bins": ["git"]}, "homepage": "https://www.agxntsix.ai"}}
---
# 💾 Workspace Backup
Automated git-based backup of your OpenClaw workspace to GitHub. Designed to run as a cron job or on-demand.
## Features
- One-command backup with auto-generated commit messages
- Smart `.gitignore` for OpenClaw workspaces
- Timestamp + changed files summary in commits
- Restore from any point in history
- Cron-friendly (no TTY required)
## Setup
### 1. Initialize the backup repo
```bash
cd ~/.openclaw/workspace
git init
git remote add origin git@github.com:YOUR_USER/YOUR_REPO.git
```
### 2. Ensure SSH keys are configured
The script uses SSH for push. Make sure your deploy key or SSH key is available.
### 3. Run the backup
```bash
bash {baseDir}/scripts/backup.sh
```
### 4. Schedule as cron job
In OpenClaw, create a cron job:
```json
{
"name": "workspace-backup",
"schedule": "0 */6 * * *",
"command": "bash /home/node/.openclaw/workspace/skills/workspace-backup/{baseDir}/scripts/backup.sh",
"description": "Backup workspace to GitHub every 6 hours"
}
```
Or via system crontab:
```
0 */6 * * * cd /home/node/.openclaw/workspace && bash skills/workspace-backup/{baseDir}/scripts/backup.sh >> /tmp/backup.log 2>&1
```
## Restore Procedures
### Restore entire workspace to latest backup
```bash
cd ~/.openclaw/workspace
git fetch origin
git reset --hard origin/main
```
### Restore a specific file from history
```bash
git log --oneline -- path/to/file # find the commit
git checkout <commit-hash> -- path/to/file # restore it
```
### Restore to a specific point in time
```bash
git log --oneline --before="2026-02-01" # find commit near that date
git checkout <commit-hash> # detached HEAD at that point
# Copy what you need, then: git checkout main
```
### View what changed between backups
```bash
git log --oneline -10
git diff <older-hash> <newer-hash> --stat
```
## .gitignore
The backup script auto-creates a `.gitignore` if missing, excluding:
- `.venv/` — Python virtual environments
- `.data/` — Local databases and data files
- `.env` — Secret environment variables
- `node_modules/` — Node.js dependencies
- `__pycache__/` — Python bytecode
- `*.pyc` — Compiled Python files
- `.DS_Store` — macOS metadata
## Script Reference
| Script | Description |
|--------|-------------|
| `{baseDir}/scripts/backup.sh` | Main backup script — add, commit, push |
## Credits
Built by [M. Abidi](https://www.linkedin.com/in/mohammad-ali-abidi) | [agxntsix.ai](https://www.agxntsix.ai)
[YouTube](https://youtube.com/@aiwithabidi) | [GitHub](https://github.com/aiwithabidi)
Part of the **AgxntSix Skill Suite** for OpenClaw agents.
📅 **Need help setting up OpenClaw for your business?** [Book a free consultation](https://cal.com/agxntsix/abidi-openclaw)