gitbackup

TotalClaw 作者 totalclaw

创建 OpenClaw 工作区存储库的本地 Git 捆绑包备份。在 Telegram 中运行 /gitbackup 或用户要求将 Git 历史记录/引用备份到本地文件时使用。

安装 / 下载方式

TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~trumppo-gitbackup
cURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~trumppo-gitbackup/file -o trumppo-gitbackup.md
## 概述(中文)

创建 OpenClaw 工作区存储库的本地 Git 捆绑包备份。在 Telegram 中运行 /gitbackup 或用户要求将 Git 历史记录/引用备份到本地文件时使用。

## 原文

# Git Backup (local bundle)

## Overview
Create a self-contained Git bundle of the workspace repo and store it in `/root/.openclaw/backups`.

## Quick start
Run the bundled script:
```bash
bash /root/.openclaw/workspace/skills/gitbackup/scripts/git-backup.sh
```

## Output
Print the bundle path and size. The bundle filename includes UTC timestamp.

## Notes
- If the workspace is not a Git repo, exit with a clear error.
- Do not delete older bundles.