WebDAV Sync for Openclaw

A robust automation skill for creating deterministic archives and syncing them securely to WebDAV storage with integrated notifications.

xyanmi
v1.0.4
Mar 26, 2026
0
931
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install webdav-sync

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install webdav-sync using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is WebDAV Sync?

WebDAV Sync is a sophisticated tool within the Openclaw Skills ecosystem designed for reliable file synchronization and backup. It packages local directories into compressed tarballs and handles the logic of remote directory creation and secure file transmission to any WebDAV-compatible server.

This skill prioritizes security and stability, using a standard-library-first approach to minimize dependencies while leveraging system binaries like curl for high-performance uploads. It is specifically engineered to handle repeatable backup tasks and scheduled sync operations in developer environments.

WebDAV Sync Use Cases

  • Automating nightly backups of local project directories to private cloud storage.
  • Synchronizing build artifacts or logs to a remote server for archival purposes.
  • Creating scheduled, compressed snapshots of sensitive data with custom exclusion rules.
  • Integrating cloud-based archiving into existing CI/CD or cron-based workflows.

How WebDAV Sync Works

  1. The skill retrieves secure credentials from environment variables to establish a connection with the WebDAV endpoint.
  2. It scans the source directory and applies explicit exclusion patterns to ensure only relevant data is captured.
  3. A local .tar or .tar.gz archive is generated based on the user's preferred compression level.
  4. It performs a check on the remote directory structure, creating necessary folders via MKCOL requests if they do not exist.
  5. The archive is uploaded using a secure PUT request via curl, utilizing temporary credential files to prevent sensitive data exposure.
  6. Upon completion, a notification is triggered to the designated channel to confirm success or report failures.

WebDAV Sync Setup

To integrate this into your workflow, ensure you have curl and Openclaw Skills installed. Configure your environment variables in your .env file:

export WEBDAV_SITE="https://your-webdav-provider.com"
export WEBDAV_USERID="your_username"
export WEBDAV_PWD="your_password"

Run the sync script directly to verify connectivity:

python3 scripts/webdav_sync.py --source /path/to/data --remote-subdir backups

WebDAV Sync Data Schema & Taxonomy

WebDAV Sync maintains a clean organizational structure for both local operations and remote storage:

Component Description
Local Archives Temporary .tar or .tar.gz files generated during the sync process.
Remote Paths Organized via --remote-subdir mapping to the WebDAV root.
Exclusions Explicitly defined patterns (e.g., .trash/*, tmp/) to filter payloads.
Maintenance Log A maintenance.log file records all configuration changes and sync improvements.
Credentials Handled via temporary 0600 permission files, never stored in plaintext logs.

WebDAV Sync Advanced Features

  • Multi-channel notification support for real-time status updates after upload attempts.
  • Deterministic archiving that supports both compressed (.gz) and uncompressed (.tar) formats.
  • Advanced error handling that recognizes non-fatal WebDAV states (201, 301, 405) for seamless directory management.
  • Wrapper script compatibility, allowing the skill to be easily pinned in cron jobs for automated Openclaw Skills execution.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Bins curlopenclaw
Github Stars: 0
forks: 0

Featured*