ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 4/5

gitbackup

Create a local Git bundle backup of the OpenClaw workspace repository. Use when running /gitbackup in Telegram or when the user asks to back up Git history/refs to a local file.

Why use this skill?

Secure your OpenClaw workspace with the gitbackup skill. Automatically generate portable Git bundles for version history, migration, and disaster recovery.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/trumppo/gitbackup
Or

What This Skill Does

The gitbackup skill provides a robust mechanism for creating point-in-time snapshots of your OpenClaw workspace repository. By leveraging Git's native bundle functionality, this skill packages the entire repository history, branches, and tags into a single, portable binary file. This file acts as a complete archive, allowing you to restore your workspace state or migrate your progress across different environments without needing a live remote server connection. The tool ensures that your data integrity is maintained, storing these backups securely within the /root/.openclaw/backups directory.

Installation

To integrate this utility into your OpenClaw agent, execute the following command in your terminal or via the agent interface: clawhub install openclaw/skills/skills/trumppo/gitbackup Ensure that your workspace is initialized as a Git repository before attempting to run the backup, as the tool performs a pre-flight check to confirm the existence of a .git directory. If the workspace lacks Git initialization, the script will return an error to prevent incomplete backups.

Use Cases

This skill is ideal for developers and power users who prioritize data preservation. Use it before executing risky automated code refactoring, system updates, or environment migrations. It is also an essential practice for maintaining version control history in air-gapped environments or scenarios where internet connectivity is unstable, as the bundle is self-contained and requires no remote interaction to create or restore.

Example Prompts

  • "OpenClaw, please run a gitbackup now to secure my current workspace progress."
  • "/gitbackup - create a new snapshot of the repository history before I start these heavy modifications."
  • "I need to move my work to another machine; can you perform a git backup of the current repository for me?"

Tips & Limitations

  • Storage management: Note that the skill does not automatically purge old backups. Periodically navigate to /root/.openclaw/backups to clean up older bundles if disk space becomes a concern.
  • Timestamps: Every bundle filename includes a UTC timestamp, which helps in identifying the specific version captured.
  • Limitations: The skill only backs up the Git-tracked files. If your workspace contains untracked configuration files or local temporary artifacts not staged in the repository, they will not be included in the bundle. Always ensure your work is committed before triggering the backup command.

Metadata

Author@trumppo
Stars946
Views2
Updated2026-02-13
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-trumppo-gitbackup": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#git#backup#version-control#recovery#storage
Safety Score: 4/5

Flags: file-write, file-read, code-execution