Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

openclaw-webdav-backupOpenClaw webdav 备份

Agent Skill

openclaw-webdav-backup 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

5,808

周安装

242

GitHub Stars

公开资料未说明

下载量

1,936
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:openclaw-webdav-backup(OpenClaw webdav 备份)
来源仓库:https://github.com/ifox2046/openclaw-webdav-backup
安装命令:
openclaw skills install openclaw-webdav-backup
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install openclaw-webdav-backup

简介

通过增量备份和完整性验证保护 OpenClaw 工作区。

  • 支持可选加密和 WebDAV 上传,确保数据安全。
  • 适用于运行状况检查和恢复操作,提升容灾能力。
  • 安装命令:openclaw skills install openclaw-webdav-backup。
  • 需确认权限范围和存储路径,避免数据覆盖或权限不足。

SKILL.md

name
openclaw-webdav-backup
description
Backup and restore an OpenClaw workspace with incremental backups, integrity verification, health checks, optional config encryption and optional WebDAV upload. Supports full/incremental backup strategies (smart/daily/hourly), backup version management (list/select/delete), and configuration health diagnostics. Use when users want OpenClaw backup, restore, VM migration/disaster recovery, encrypted config backups, WebDAV-based offsite copies, scheduled backups, or backup integrity monitoring. Users must provide their own WebDAV service and credentials.

OpenClaw WebDAV Backup

Lightweight backup/restore skill for OpenClaw.

It covers:

  • local backup archives (full and incremental)
  • multi-level backup strategies (smart, daily, hourly)
  • optional encryption for openclaw.json
  • optional WebDAV upload
  • restore from local backup archives
  • backup version management (list, select, delete)
  • backup integrity verification
  • configuration health checks
  • lightweight scheduled backup guidance
  • optional Telegram notifications for backup success/failure

It does not provide WebDAV storage. The user must supply their own WebDAV endpoint and credentials.

When to use this skill

Use this skill when the user asks to:

  • back up OpenClaw (full or incremental)
  • restore OpenClaw from backup
  • migrate OpenClaw to a new VM or machine
  • protect backup configs with encryption
  • upload backups to a self-provided WebDAV target
  • schedule daily or periodic backups
  • receive Telegram notifications for scheduled backup success/failure
  • prepare a simple disaster-recovery workflow
  • check backup configuration health
  • verify backup integrity
  • manage backup versions (list, delete old backups)

Implementation layout

Canonical implementation lives inside the skill:

  • scripts/openclaw-backup.impl.sh
  • scripts/openclaw-restore.impl.sh

Thin wrapper scripts may also exist in the workspace and call these implementations. Keep the skill scripts as the source of truth.

Default workflow

1. Local backup (full)

bash skills/openclaw-webdav-backup/scripts/openclaw-backup.sh

2. Incremental backup with smart strategy

Auto-determines level based on day:

  • Sunday: Level 0 (full backup)
  • Monday-Saturday: Level 1 (incremental)
# Smart strategy (recommended for cron)
BACKUP_STRATEGY=smart bash skills/openclaw-webdav-backup/scripts/openclaw-backup.sh

# Or explicitly set level
bash skills/openclaw-webdav-backup/scripts/openclaw-backup.sh --level=1

3. Encrypted backup + WebDAV upload

Prepare .env.backup with the user's own WebDAV settings, then run:

bash skills/openclaw-webdav-backup/scripts/openclaw-backup.sh --encrypt-config --upload

Only do real upload after confirming the user wants to write to the remote WebDAV target.

4. Restore from a local backup set

bash skills/openclaw-webdav-backup/scripts/openclaw-restore.sh --from backups/openclaw/latest --decrypt-config

Backup Strategies

The skill supports multiple backup strategies via BACKUP_STRATEGY environment variable:

StrategyDescriptionLevel Behavior
full (default)Always full backupLevel 0
weeklyWeekly full backupLevel 0
dailyDaily with auto-incrementalLevel 0 once, then Level 1
smartRecommended for productionSunday=Level 0, Mon-Sat=Level 1
hourlyFine-grained incrementalLevel 0 → 1 → 2 chain

Level Explanation

  • Level 0: Full backup (tar creates complete archive + snapshot file)
  • Level 1: Incremental backup (only files changed since Level 0)
  • Level 2: Incremental backup (only files changed since Level 1)

Cron Examples

# Smart strategy: Sunday full, weekdays incremental
0 0 * * 0 BACKUP_STRATEGY=smart /path/to/openclaw-backup.sh --upload
30 3 * * 1-6 BACKUP_STRATEGY=smart /path/to/openclaw-backup.sh --upload

# Weekly full only
0 3 * * 0 BACKUP_STRATEGY=weekly /path/to/openclaw-backup.sh --upload

# Daily with auto-level detection
0 3 * * * BACKUP_STRATEGY=daily /path/to/openclaw-backup.sh

Manual Level Control

Override auto-detection with --level flag:

bash openclaw-backup.sh --level=0  # Force full backup
bash openclaw-backup.sh --level=1  # Force incremental (level 1)

Compression Options

The skill supports multiple compression tools with automatic detection of parallel variants:

OptionToolThreadsNotes
gzipgzip1Standard, widely available
pigzpigzNParallel gzip, 3-5x faster
zstdzstd1High compression ratio
pzstdpzstdNParallel zstd, fastest option

Auto-Detection

By default, the skill auto-detects the best available compressor:

# Prefers pigz > gzip, pzstd > zstd
bash skills/openclaw-webdav-backup/scripts/openclaw-backup.sh

Explicit Selection

Force a specific compressor:

bash skills/openclaw-webdav-backup/scripts/openclaw-backup.sh --compress=pigz
bash skills/openclaw-webdav-backup/scripts/openclaw-backup.sh --compress=pzstd

Parallel Jobs

Control the number of compression threads (default: auto-detect CPU cores):

# Use 8 threads explicitly
PARALLEL_JOBS=8 bash skills/openclaw-webdav-backup/scripts/openclaw-backup.sh

# Or via CLI
bash skills/openclaw-webdav-backup/scripts/openclaw-backup.sh --jobs=8

Installation

Install parallel compression tools for best performance:

# Ubuntu/Debian
sudo apt-get install pigz zstd

# macOS
brew install pigz zstd

# CentOS/RHEL
sudo yum install pigz zstd

Backup Notifications

The skill supports multiple notification channels for backup success/failure alerts.

Supported Channels

ChannelStatusConfiguration
Telegram✅ ReadyBot token + Chat ID
WeCom (企业微信)✅ ReadyWebhook key
Feishu (飞书)✅ ReadyWebhook token

Quick Setup

  1. Copy the example config:
cp references/env.backup.notify.example .env.backup.notify
  1. Edit .env.backup.notify with your channel settings:

Telegram Setup

BACKUP_NOTIFY=1
BACKUP_NOTIFY_CHANNEL="telegram"
BACKUP_NOTIFY_TELEGRAM_CHAT_ID="123456789"
BACKUP_NOTIFY_TELEGRAM_BOT_TOKEN="123456:your-bot-token"  # Optional, can auto-detect

WeCom (企业微信) Setup

BACKUP_NOTIFY=1
BACKUP_NOTIFY_CHANNEL="wecom"
BACKUP_NOTIFY_WECOM_KEY="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
BACKUP_NOTIFY_WECOM_MENTION="13800138000,13900139000"  # Optional: mobile numbers

*Get webhook key from: Group Settings → Add Robot → Copy Webhook URL key*

Feishu (飞书) Setup

BACKUP_NOTIFY=1
BACKUP_NOTIFY_CHANNEL="feishu"
BACKUP_NOTIFY_FEISHU_TOKEN="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
BACKUP_NOTIFY_FEISHU_SECRET="your-secret"  # Optional: if signature enabled

*Get webhook token from: Group Settings → Add Bot → Copy Webhook URL token*

Notification Content

Notifications include:

  • Backup status (✅ success / ❌ failure)
  • Timestamp and backup type
  • Local backup location
  • Encryption status
  • WebDAV upload status
  • Retention settings

Important behavior notes

  • openclaw.json may contain secrets, tokens, and API keys
  • prefer --encrypt-config before remote upload
  • .env.backup stores WebDAV connection settings and should not be committed
  • .env.backup.secret is optional; it is only a convenience carrier for BACKUP_ENCRYPT_PASS
  • .env.backup.notify is optional and enables backup notifications when configured
  • restore depends on the decryption password itself, not on the secret file specifically
  • for encrypted backups, .env.backup.secret and the password are either/or: either keep the file, or remember/provide the password
  • workspace backups exclude .env.backup and .env.backup.secret
  • local and remote retention are supported through LOCAL_KEEP and REMOTE_KEEP

Read references when needed

  • For usage, included files, and backup examples: read references/backup.md
  • For restore/decrypt flow and restore checks: read references/restore.md
  • For automation with cron/systemd: read references/scheduling.md
  • For migration/disaster-recovery planning: read references/migration-plan.md
  • For common user questions and boundary clarifications: read references/faq.md
  • For config template examples: read references/env.backup.example, references/env.backup.secret.example, and references/env.backup.notify.example

Validated behaviors

This skill has been validated against a real OpenClaw setup for:

  • local backup creation
  • encrypted config backup
  • WebDAV upload
  • local and remote retention
  • restore drill to a simulated fresh-machine home directory
  • cron-based scheduled backup
  • Telegram notification on backup success
  • backup integrity verification
  • configuration health checks

Health Check & Integrity Verification

Configuration Health Check

Run scripts/openclaw-healthcheck.sh to diagnose backup environment:

bash skills/openclaw-webdav-backup/scripts/openclaw-healthcheck.sh

Checks performed:

CheckDescription
Base Environmentworkspace dir, state dir, openclaw.json, extensions
Backup Infrastructurebackup root, snapshot dir, existing backups
Dependenciestar, curl, openssl availability
Configuration.env.backup, .env.backup.secret variables
Backup IntegrityValidates all existing tar.gz archives

Exit codes:

  • 0 - All checks passed
  • 1 - One or more critical checks failed

Backup Integrity Verification

Every backup automatically runs integrity checks:

  1. Archive validation - tar -tzf verifies archive structure
  2. Manifest verification - Confirms manifest.txt exists
  3. Metadata check - Confirms workspace.meta exists

Failed integrity checks will abort the backup with error status.

To manually verify a specific backup:

tar -tzf backups/openclaw/2026-04-02-030000/workspace.tar.gz >/dev/null && echo "Valid" || echo "Corrupted"

Restore with Integrity Check

When restoring, verify the backup before extraction:

# Check integrity first
bash scripts/openclaw-restore.sh --from <backup_dir> --dry-run

# Then perform actual restore
bash scripts/openclaw-restore.sh --from <backup_dir>

Private-share checklist

Before sharing this skill privately, verify:

  • no real .env.backup or .env.backup.secret is included
  • no real WebDAV URL, username, password, token, or backup passphrase remains in tracked files
  • examples use placeholder values only
  • docs state clearly that WebDAV storage is user-provided
  • restore wording states password and secret file are either/or, not both required
  • references match actual script behavior

Scope

This skill intentionally stays lightweight. It supports:

  • local backup and restore
  • optional config encryption
  • optional WebDAV upload
  • local and remote retention
  • password-based restore with optional secret file automation

It does not currently provide:

  • built-in WebDAV provisioning
  • secret-manager integration
  • fully automatic remote download-and-restore flow
  • multi-target cloud replication

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

90.56%
按下载量换算1,753

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills