gitbackup for Openclaw

Automatically generates self-contained Git bundles of your OpenClaw workspace to ensure your version history is backed up locally.

trumppo
v0.1.0
Feb 9, 2026
0
2k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install gitbackup

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install gitbackup using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is gitbackup?

gitbackup is a utility within the Openclaw Skills library that provides a seamless way to create local backups of your repository. Instead of relying solely on remote servers, this skill generates a full Git bundle—a single-file representation of your repository's history, branches, and tags. This ensures that you have a portable, restorable snapshot of your workspace stored directly on your local filesystem, protecting against accidental data loss or corruption during intensive development cycles.

By leveraging this tool, developers can maintain a consistent backup trail without manual overhead. It is specifically optimized for environments where OpenClaw manages the workspace, providing a standardized path for data preservation that integrates directly with agent-led workflows.

gitbackup Use Cases

  • Preserving repository state before making experimental changes via an AI agent.
  • Creating local snapshots for offline version control management.
  • Manual backup triggering through the /gitbackup command in communication platforms like Telegram.
  • Long-term archiving of project milestones in a portable, single-file bundle format.

How gitbackup Works

  1. The skill checks the workspace status to ensure it is an active Git repository.
  2. It calls the specialized shell script located in the skill's script directory.
  3. The script packages all refs and objects into a compressed Git bundle.
  4. A UTC timestamp is appended to the filename to prevent naming collisions and ensure chronological sorting.
  5. The bundle is moved to the designated backup directory at /root/.openclaw/backups.
  6. The system returns the absolute path and file size for verification.

gitbackup Setup

To use this feature within the Openclaw Skills framework, ensure your workspace is a Git repository and run the following command:

bash /root/.openclaw/workspace/skills/gitbackup/scripts/git-backup.sh

No additional configuration is required as long as the default OpenClaw path structure is maintained.

gitbackup Data Schema & Taxonomy

The skill maintains a predictable data structure for all generated backups:

Item Description Location
Backup File Portable Git bundle containing all history /root/.openclaw/backups/
Naming Convention UTC Timestamped filename git-backup-[TIMESTAMP].bundle
Metadata Output containing file size and path Console/Agent logs

These bundles are part of the broader Openclaw Skills data management strategy, allowing for easy restoration using standard git clone or git fetch commands.

gitbackup Advanced Features

  • Self-contained Git bundles that include all commit history, branches, and tags in one file.
  • Native integration with the OpenClaw Telegram interface for remote backup management using /gitbackup.
  • Non-purging logic that ensures older backups are kept for historical auditing rather than being overwritten.
  • Lightweight bash-based execution that minimizes workspace resource consumption during the backup process.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*