LaunchKit · 2026
Back to Skills

Create a local Git bundle backup of the OpenClaw workspace repository.

0
851 downloads
by @trumppo

Setup & Installation

openclaw skills install @trumppo/gitbackup

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install gitbackup

What This Skill Does

Creates a self-contained Git bundle of the OpenClaw workspace repository and saves it to `/root/.openclaw/backups`. The bundle filename includes a UTC timestamp. Older backups are not deleted.

A Git bundle is fully self-contained and portable, so the backup works without network access or a remote host.

When to use it

  • Backing up Git history before a risky rebase
  • Preserving workspace state before a major refactor
  • Creating a point-in-time snapshot before deploying changes
  • Archiving project history for offline access
  • Safeguarding all refs and commits before a destructive branch operation

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Back up my Git repository

AGENT
  1. 1Runs git-backup.sh from the gitbackup skills directory
  2. 2Verifies the workspace is a valid Git repository
  3. 3Creates a timestamped bundle file in /root/.openclaw/backups
  4. 4Prints the bundle file path and its size
OUTPUT

Bundle saved to /root/.openclaw/backups/workspace-20260319T120000Z.bundle (2.4 MB)