Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

safe-backup

bởi hacksing

Web & Frontend Development
439Lượt tải do clawskills.sh công bố
1Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Backup OpenClaw state directory and workspace.

Mô tả

Kỹ năng này làm gì

Backs up the OpenClaw state directory and workspace into a compressed tarball. Sensitive files, including auth tokens, API keys, and credentials, are automatically excluded. Supports Linux, macOS, and Windows via Git Bash or WSL.

Automatically excludes credential files and session data so backups are safe to store or transfer without manual file filtering.

Khi nào nên dùng

  • Migrating OpenClaw setup to a new machine via USB transfer
  • Creating a weekly encrypted local backup before OS upgrades
  • Storing agent configs and memory in a private GitHub repository
  • Syncing OpenClaw state to a remote server with rsync
  • Recovering agent definitions and memory files after disk failure

Quy trình ví dụ

ĐẦU VÀO

User asks: Back up my OpenClaw setup and store it securely

AGENT
  1. 1

    Runs ~/.openclaw/skills/safe-backup/scripts/backup.sh to generate a dated tarball

  2. 2

    Reads the output path of the generated .tar.gz file

  3. 3

    Encrypts the tarball using openssl aes-256-cbc with a user-supplied password

  4. 4

    Stores the encrypted file in ~/backups/ and deletes the unencrypted original

  5. 5

    Confirms backup integrity by listing archive contents

ĐẦU RA

Encrypted backup file saved to ~/backups/safe-backup-YYYYMMDD.tar.gz.enc

Cài đặt

clawhub install hacksing/safe-backup

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết