ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

safe-backup

Backup OpenClaw state directory and workspace. Includes excluding sensitive files, packaging for backup. Triggered when user asks to backup, export, or save state.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/hacksing/safe-backup
Or

Safe Backup

Backup OpenClaw state directory and workspace with security best practices.

⚠️ Security Warnings

  • Backup may contain sensitive data - review before sharing
  • If uploading to GitHub - use a private repository and consider encryption
  • auth-profiles.json is EXCLUDED - after restore, you must re-authenticate
  • This script does NOT automatically push to any remote

Quick Start

1. Run Backup

~/.openclaw/skills/safe-backup/scripts/backup.sh

2. Check Output

Backup file: /tmp/safe-backup-20260223.tar.gz  (Linux)
Backup file: /var/folders/xx/.../safe-backup-20260223.tar.gz  (macOS)
Backup file: C:\Users\xxx\AppData\Local\Temp\safe-backup-20260223.tar.gz  (Windows)

3. Store Securely

See "Storage Options" below.


Cross-Platform Migration

Platform Support

PlatformStatusRequirements
Linux✅ Fully supportedNative bash
macOS✅ Fully supportedNative bash
Windows (Git Bash)✅ SupportedGit for Windows
Windows (WSL)✅ SupportedWSL Ubuntu/Debian
Windows (Native CMD)❌ Not supportedRequires bash

Important Notes for Migration

1. Temporary Directory Auto-Detection

The script automatically detects the appropriate temp directory for each platform:

PlatformTemp DirectoryEnvironment Variable
Linux/tmp-
macOS/var/folders/xx/...$TMPDIR
Windows (Git Bash)C:\Users\xxx\AppData\Local\Temp$TEMP / $TMP

2. rsync Dependency

The script uses rsync for efficient file copying:

  • Linux/macOS: ✅ Built-in
  • Windows: ⚠️ Git Bash includes rsync

If rsync is not available, the script will fail. For Windows without Git Bash, you need to install rsync separately (e.g., via MSYS2 or Cygwin).

3. Path Separators

The script uses Unix-style forward slashes (/). This works in:

  • Linux ✅
  • macOS ✅
  • Git Bash ✅
  • WSL ✅

Native Windows CMD uses backslashes (\) and won't work without modifications.

4.

Metadata

Author@hacksing
Stars2387
Views0
Updated2026-03-09
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-hacksing-safe-backup": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.