DeepSeek Harness Nutstore Backup Plugin

Preface

The core of DeepSeek Harness (DSH) is its plugin architecture. Session records, plugin configurations, and workspace memory are key assets that developers build up over time. The dsh-nutstore-backup plugin incrementally backs up this data to Nutstore via the WebDAV protocol, enabling quick restoration on a new machine. This plugin is maintained by community user yang208691-source and is released under the MIT license.

Installation and Configuration

To install the plugin, use DSH’s plugin management command. Running the following command in the terminal adds the plugin to your current profile:

dsh plugin --profile desktop add dsh-nutstore-backup

After installation, restart DSH to load the plugin. In the settings page, you need to configure your Nutstore credentials first. Nutstore mandates the use of an app-specific password rather than your login password. Generate an app password in the security section of the Nutstore web interface, then enter it into the plugin settings. The password is stored in DSH’s credential store by default, and the page will not display it back.

Core Capabilities

This plugin focuses on persisting core data and offers the following capabilities:

  1. Incremental backup: Only uploads newly added or modified files, reducing bandwidth consumption.
  2. One-click restore: After installing the plugin and logging in on a new machine, you can directly restore sessions, configurations, and memory from the cloud.
  3. Zero dependencies: Implements the WebDAV client using Node’s built-in modules, without relying on any third-party npm packages.
  4. Tool integration: Supports invoking tools such as nutstore_backup and nutstore_restore through the model.
  5. Compatibility: Filenames are base64url-encoded to ensure Chinese paths and special characters work correctly over WebDAV.

Usage Steps

In DSH’s settings page, perform the following steps:

  1. Enter your Nutstore account and app password, then click “Save and Log In”.
  2. Click “Test Connection” to verify the network connection and credentials.
  3. Click “Back Up Now” to sync local sessions, configurations, and memory to the cloud.
  4. When switching to a new machine, log in with the same account and use the “Restore Cloud Backup” feature to recover your data.

Backup Scope

The plugin backs up the following core content:

  • Session records
  • Plugins and configurations
  • Workspace memory
  • Plugin source code (for reinstalling on a new machine)

The plugin does not back up the following non-core files, to avoid an excessively large backup size:

  • node_modules
  • .git
  • .pnpm
  • Regular .md documents
  • Attachment binaries and cache files

Tool Interface

The plugin provides the following tools to the model, which can be invoked directly in conversations:

  • nutstore_status: Check login status, backup scope, and file statistics.
  • nutstore_login: Write the account and app password and verify them (Note: this operation writes the password into the conversation log; for everyday use, it is recommended to use the settings page).
  • nutstore_backup: Perform an incremental backup; supports force: true to force a full re-upload.
  • nutstore_list: List the backup records from each machine in the cloud.
  • nutstore_restore: Perform a restore operation; supports dryRun: true for preview only.

Summary

This plugin addresses the pain points of data migration and long-term storage for DSH users. By using Nutstore as a reliable relay, it achieves cross-device data consistency. To view the source code or submit feedback, visit the plugin repository.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye