webdav-sync
Installation
SKILL.md
WebDAV Sync
Overview
Run scripts/webdav_sync.py to package local content as .tar or .tar.gz and upload it to a WebDAV target defined in an env file. Prefer this skill for repeatable backups and scheduled sync tasks.
Core Logic
- Read WebDAV credentials from an env file using
WEBDAV_SITE,WEBDAV_USERID, andWEBDAV_PWD. - Create archives with explicit exclude patterns instead of implicit ignores.
- Prefer explicit paths in cron jobs and wrappers.
- Keep notification delivery outside the archive payload. Use the host messaging path after upload success or failure.
- When changing sync scope, update both the wrapper script and any scheduled job that invokes it.
- Record every confirmed improvement or compatibility fix in
maintenance.log.