Introduction¶
In DeepSeek Harness (DSH), skills and plugins are scattered across multiple directories, making manual backups prone to omissions or duplicates. Manual packaging is both time-consuming and error-prone, especially when long-term archival or cross-device migration is required. dsh-archiver is specifically designed to solve this problem: it packages each skill and each plugin into its own zip file, saves them to a local directory or WebDAV, and provides a one-click import function.
What It Is¶
dsh-archiver is a DSH plugin (category: workflow) developed by maintainer chiya695. Through its settings page, command line, or scheduled tasks, it archives DSH skills and plugins into individual zip packages, supports syncing to WebDAV, and can restore backups with a single click.
Installation¶
Install from GitHub:
dsh plugin --profile desktop add github:chiya695/dsh-archiver
You can also provide the repository URL directly:
dsh plugin --profile desktop add https://github.com/chiya695/dsh-archiver
After installation, you must fully quit DSH (exit from the system tray) and restart it to load the host-side timers and tools.
Uninstall:
dsh plugin --profile desktop remove dsh-archiver
Using the Settings Page¶
Open “Settings → Archive & Backup”:
- Overview: Displays the number of archivable items, local artifact count and size, last run time, next scheduled archive time, WebDAV status, save directory, and more.
- Archive Now (Manual): Select archive targets (skills + plugins / skills only / plugins only), whether to do a dry run, then click “Archive to Local (Save Directory)”, “Archive to Cloud (WebDAV)”, or “Local + Cloud”.
- Configuration Groups: Include mode and targets, auto mode, manual mode, local output, WebDAV, packaging, and source settings. After making changes, click “Save N modifications” to apply.
- Local Artifacts + Run Log: Lists the artifact inventory and the most recent 80 lines of log output.
The large banner at the top of the panel displays the conclusion: green indicates success, red indicates failure, along with the reason and recommended actions. If WebDAV is not configured, clicking “Archive to Cloud” will explicitly refuse and direct you to the WebDAV settings.
Auto Mode¶
Auto-archiving provides three cadences:
- Archive once after DSH starts (
auto.onStart, enabled by default, 15000 ms delay) - Archive every N hours (
auto.everyHours, default 24; set to 0 to disable) - Archive at a fixed time daily (
auto.dailyAt, local time HH:MM; won’t repeat if already run that day)
Multiple cadences can be enabled simultaneously; the one that fires first triggers the run. To prevent overly frequent execution, a minimum interval is set (auto.minGapMinutes, default 30 minutes).
Manual mode configures default behavior:
- Default archive targets (
manual.defaultTargets, default: all) - Default dry run (
manual.dryRun, default: off) - Auto-open artifact directory after run (
manual.openAfterRun, default: off)
Configuration¶
The config file is located at $DSH_HOME/dsh-archiver/config.json (on Windows, typically C:\Users\<your_username>\.dsh\dsh-archiver\config.json).
Common fields:
enabled: Master switch controlling whether archiving is enabledtargets: Controls whether to archive skills and/or pluginsdest: Output destination, options:local,webdav, orbothlocal.root: Local save directory; if empty, the default path is usedlocal.layout: Directory layout, options:flat(stable file names) orrun(one timestamped directory per run)local.keepVersions: Number of historical versions to retain; 0 means keep only the latestzip.level: Compression level (0–9, default 6)zip.skipUnchanged: Incremental archiving; reuse the previous zip if the source hasn’t changed (default: off)zip.exclude: List of files/directories to excludewebdav: WebDAV configuration, includingenabled,url,username,password,passwordEnv,root,timeoutMs
WebDAV Sync¶
When WebDAV is enabled, archive artifacts can be uploaded to a remote server simultaneously. It is recommended to pass the password via the environment variable DSH_ARCHIVER_WEBDAV_PASSWORD rather than storing it in plaintext in the config file.
WebDAV services like Jianguoyun (Nutstore) require an app-specific password (Web interface → Security → Third-Party App Management) rather than your login password.
Version History¶
When local.keepVersions is enabled, the most recent N snapshots are retained:
flatlayout: The latest files remain at a fixed location; historical snapshots are stored underhistory/<YYYYMMDD-HHmmss>/runlayout: Each archive run generates a timestamped directory; once N copies are exceeded, the oldest is automatically deleted
The “Version History” card in the panel lists each snapshot and supports opening the directory, pruning to N copies, or directly importing that snapshot.
Importing Backups¶
The “Import Backup” card in the panel or the dsh_archive_import tool can restore exported backups:
- Specify the source: the export root directory, a history snapshot directory, or a single
.zipfile - Scan: Lists where each package will be placed and checks whether it already exists
- Select and import:
- Skills →$DSH_HOME/skills/<name>/; single-file skills are saved as$DSH_HOME/skills/<name>.md
- Plugins →$DSH_HOME/dsh-archiver/imported-plugins/<package_name>/ - The import result provides a
dsh plugin --profile <current> add link:<path>command; it does not auto-modify profiles or bundles - When “Overwrite” is checked, the existing directory with the same name is renamed to
<name>.bak-<timestamp>as a backup
Security details: Zip entries containing .. or absolute paths are rejected; package names are sanitized to prevent path traversal; Windows reserved names like NUL/CON are skipped during both packaging and import.
Command Line & API¶
The CLI tool is located at bin/dsh-archiver.mjs:
node bin\dsh-archiver.mjs run --dest both
node bin\dsh-archiver.mjs status --details
node bin\dsh-archiver.mjs config set <key> <value>
node bin\dsh-archiver.mjs test-webdav
The tools dsh_archive_now, dsh_archive_status, and dsh_archive_config provide shorthand:
dsh_archive_now { targets: "skills", dryRun: true }
dsh_archive_now { dest: "both" }
The HTTP API provides GET/POST /api/dsh-archiver, supporting ?view=boot|status|logs and {"action":"run|config|test-webdav|open|prune"}.
Artifact Structure¶
flat layout (default):
$(saveRoot)/
manifest.json
skills/archify.zip office-docx.zip dsh-browser.zip reverse-engineer-anything.zip
plugins/dsh-purge.zip dshmarket.zip @michengai__dsh-skills-manager.zip
run layout:
$(saveRoot)/20261117-163155/{manifest.json, skills/…, plugins/…}
Each zip retains one root directory level internally, ready to use after extraction. Every package includes a manifest.json recording the source, size, file count, elapsed time, and sha256 checksum.
Use Cases¶
dsh-archiver is ideal for DSH users who need long-term archival, cross-device migration, or periodic backups, especially developers managing a large number of skills and plugins simultaneously. It supports incremental archiving and version history management to avoid redundant packaging, and provides cloud synchronization through WebDAV.
Closing¶
dsh-archiver provides a complete workflow from packaging and syncing to importing, helping DSH users safely manage their skill and plugin assets. For more details, visit the GitHub repository: https://github.com/chiya695/dsh-archiver