AI Agent Hub
Back to plugins
🖥️

dsh-env-backup

Client Updated 2026.08.31

Run the following command in DeepSeek Harness:

dsh plugin install ikanger/dsh-env-backup

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install ikanger/dsh-env-backup in your DeepSeek Harness terminal; the source lives at https://github.com/ikanger/dsh-env-backup .

About this plugin

Installing or updating plugins in DeepSeek Harness mutates the web plugin table, and a single bad operation can leave ~/.dsh/profiles/web in an unusable state with no built-in rollback. dsh-env-backup solves exactly that: it snapshots the web directory the moment the plugin table changes, so you always have a working version one step behind.

Triggering covers four paths—boot-time fingerprint comparison, a 60-second periodic check, plugin-graph change event subscriptions, and a manual button on the settings page—so it catches CLI installs, host hot-reloads, and in-process graph rebuilds alike. Backups use a rotating naming scheme (web.latest_bak plus timestamped web.YYYYMMDDHHMM archives) and are pruned automatically based on your retention days and max-backup count; every setting lives under Settings → Environment Backup and persists in ~/.dsh/web-backup.json.

If you install, update, or debug Harness plugins regularly and want a safety net that never interferes with your workflow, this lightweight guard belongs in your stack. It stays out of the way, quietly watches your web directory, and when things go sideways, restoring is just a copy-and-restart away.

Use Cases

  • A plugin install or update corrupts the web config and you need to roll back to the last good snapshot instantly
  • You hot-reload or debug plugins often and want to verify the environment has not been silently altered
  • A shared dsh host is used by multiple developers and you need auto-rotated backups to survive accidental overwrites

Best For

  • Developers and integrators who install, update, or debug Harness plugins frequently
  • Ops engineers who need production stability with zero rollback overhead
  • Team leads who want an environment safety net without changing any daily workflow