Introduction¶
The DeepSeek Harness (DSH) plugin system allows for functional extensions. dsh-plugin-oss-backup is a network-enabled utility plugin maintained by KAIROSLLL, designed to back up workspace files to object storage.
It supports self-hosted S3-compatible services like RustFS and MinIO, as well as Alibaba Cloud OSS and AWS S3. Once configured, you can use the settings interface to upload entire folders to the cloud.
Core Features¶
This plugin provides the following capabilities:
- Manual Folder Backup: Enter the target directory in the “Backup Directory” field on the settings page and save. Then, return to the “Manual Backup” section and click “Backup Now” to recursively back up the entire folder.
- Scheduled Full Backup: Automatically uploads the entire directory based on a schedule.
- Auto-Backup on File Change: When enabled, any saved file is automatically uploaded 2 seconds after the save action.
- Single File Upload via Model: The model can directly call the tool to upload a local file to a specified object path.
- 《Data Catcher》: A fun feature. Play a rhythm mini-game in the “Upload Status” box; the backup only starts after clearing the level. This can be disabled in the settings if unwanted.
Installation¶
The plugin supports installation via the package manager:
cd <your-plugin-directory>
pnpm add dsh-plugin-oss-backup
(Alternatively, install the packaged .tgz into your DSH profile)
After installation, restart dsh web. The “Object Storage Backup” option will appear in the settings page.
Configuration & Usage¶
Credentials & Security¶
The plugin reads credentials exclusively from environment variables; they are not written to disk, displayed in the UI, or written to logs. It supports .env files (read-only) for temporary local use, but ensure they are listed in .gitignore. It also supports injecting environment variables via secret managers (e.g., 1Password, Vault). You must restart dsh web for new environment variables to take effect.
Usage Steps¶
- Enter the directory to be backed up in the “Backup Directory” field on the settings page.
- Click Save.
- Return to the “Manual Backup” section and click “Backup Now”.
- The system will recursively back up the entire folder and display the count of successes/failures and the total size.
Notes¶
- Credentials are passed only via environment variables; the interface only displays “Configured / Not Configured”.
- Supports injecting environment variables via secret managers (e.g., 1Password, Vault).
- Tested and verified: RustFS actual upload (local machine), Alibaba Cloud connectivity.
Conclusion¶
This plugin provides standardized cloud backup capabilities for DSH, ensuring security by managing credentials via environment variables. For more details, please refer to the plugin directory or the source code repository.