Introduction¶
DeepSeek Harness (dsh) adopts a plugin-based architecture, with chat history, plugin code, configurations, and project files scattered across the local system. After frequent reinstalls, device changes, or accidental deletions, rebuilding this data from scratch is tedious and error-prone. Whale Backup (dsh-whale-backup) provides backup and restore capabilities for DSH, packaging the above data into SHA-256-verified archives and storing them locally or on WebDAV, with support for scheduled tasks and multiple restore strategies.
What Is This¶
dsh-whale-backup is a backup and recovery plugin for DeepSeek Harness, maintained by Ouyangyouzi. It has zero runtime dependencies, requires Node.js ^22.19.0 || >=24.0.0, dsh >= 0.2.0. The current version is v0.56, licensed under the MIT License.
Core Features¶
Backup Scope¶
The backup covers chat history, plugins and plugin code, plugin data, settings, and project files. Credential files such as .credentials.yaml and .env are excluded by default and must be manually selected.
Storage Targets¶
Backup destinations can be local, WebDAV, or dual-write. Compression formats supported include zstd, gzip, or no compression.
Selection Scope¶
You can choose to back up all or the current project; all sessions, the most recent N sessions, or manually select specific sessions and project directories.
Verification & Restore¶
A per-file SHA-256 manifest is generated, along with an archive checksum file for pre-restore verification. Restore supports fine-grained recovery by category, session, or project file, with four same-name conflict strategies. A safety backup is performed by default before any restore operation.
Scheduled Tasks¶
Supports daily, every N days, weekly, monthly, weekdays only, holidays only, and every N hours. Configurable backup retention limit, catch-up runs for missed schedules, and SMTP email notifications.
Entry Points¶
After installation, it can be accessed via the following entry points:
- Settings page: five tabs
- Command:
/easybackup - CLI:
whale-backup - Model tools: 5 model tools
Installation & Activation¶
Install with the following command:
dsh plugin --profile desktop add dsh-whale-backup
To install from a local directory, use:
dsh plugin --profile desktop add link:/absolute/path/to/dsh-whale-backup
Restart dsh after installation to use it.
Typical Usage¶
Check Status¶
whale-backup status
Backup All Sessions and Projects¶
whale-backup backup --to both --workspace all
--to both means writing to both local and WebDAV simultaneously. --workspace all means backing up all projects.
List Backups¶
whale-backup list --source both
--source both means listing backups from both local and WebDAV.
Verify the Latest Backup¶
whale-backup verify latest
Restore the Latest Backup¶
whale-backup restore latest --source local --yes
--source local specifies restoring from local storage. --yes auto-confirms the operation.
Clean Up Old Backups¶
whale-backup prune --source local --keep 10 --yes
Retains the most recent 10 backups and deletes the rest.
Use Cases & Notes¶
Ideal for users who frequently reinstall dsh, switch devices, or are concerned about data loss. The plugin runs with the permissions of the current dsh process; it is recommended to review the source code and license before installing. It only uses dsh’s public extension interfaces, does not modify host code, and has no telemetry or third-party data reporting.
Summary¶
Whale Backup provides end-to-end backup and restore capabilities for DeepSeek Harness, supporting local and WebDAV storage, scheduled tasks, integrity verification, and fine-grained restore strategies to reduce the risk of data loss. The plugin directory page and source code are available at:
- Directory page: https://www.skillhub.cn/plugins/Ouyangyouzi/dsh-whale-backup
- GitHub: https://github.com/Ouyangyouzi/dsh-whale-backup