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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/trumppo/gitbackupWhat 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
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-trumppo-gitbackup": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-write, file-read, code-execution
Related Skills
mem
Search local memory index (local-first). Use for /mem queries in Telegram.
fullbackup
Create a full local backup of the OpenClaw workspace and configuration using the existing backup-local.sh script. Use for /fullbackup in Telegram or when the user asks for a complete local backup.
gh
Use the GitHub CLI (gh) to perform core GitHub operations: auth status, repo create/clone/fork, issues, pull requests, releases, and basic repo management. Trigger for requests to use gh, manage GitHub repos, PRs, or issues from the CLI.
search-memory
Local-first memory search and indexing for Openclaw. Use when you need to (1) index memory files, (2) search memory from the CLI, or (3) wire a slash command for memory lookup.