Introduction¶
In agent development, once the session body, persona configuration, or memory data is lost, the cost of rebuilding it is high. DSH’s session files and memory are scattered across different directories. Manual backups easily miss something—deleting a session leaves logs on disk, and persona and memory data don’t even have independent data files. Keeping one backup version per day costs almost nothing, but it requires a structured approach.
What This Is¶
dsh-daily-backup is a DSH plugin maintained by Maybe-Zero-not-one. Every day, it backs up the session body, index, persona, memory, and app state to a directory outside any workspace, retaining only the most recent N days. The “Backup” panel in the left sidebar lets you view which files were backed up each day, trigger a manual backup, or delete a specific day’s backup. The second tab lets you configure OpenList / WebDAV directly, so that after each daily backup completes, a copy is automatically pushed to a remote location.
Installation & Activation¶
Run the following in the command line:
dsh plugin add dsh-daily-backup
Or in the DSH panel, go to “Plugins → Add Plugin” and enter dsh-daily-backup. After installation, a “Backup” icon will appear in the left sidebar.
What Gets Backed Up¶
The plugin backs up five layers daily:
| Layer | Source Path | Destination |
|---|---|---|
| Index | storages\session_projcache\sessions\*.json |
index\<date>\ |
| Session Body | sessions\<workspace>\<session-id>\session.v4.jsonl.zstd |
session\<workspace-name>\<date>\ |
| App State | Cookies, Local Storage, logs, etc. under %APPDATA%\@deepseek-ai\dsh-desktop |
app-state\<date>\ |
| Persona | cordis.patch.yml in the profile (cards, default card, session mappings) |
persona\<date>\ |
| Memory | soul-md\memory\*.md + fish-memory\*.json |
memory\<date>\<dir-name>\ |
The default root directory is <DSH_HOME>\backups (i.e., ~\.dsh\backups), which lives outside any workspace, so cleaning a workspace won’t affect it.
Persona & Memory Ownership¶
Persona and memory data are not managed by this plugin; it simply copies them. The data itself belongs to two other plugins:
- Persona: Owned by
dsh-soul-md, stored inconfig.cardsandcards.activeunder<DSH_HOME>\profiles\<profile>\cordis.patch.yml. - Memory · Part 1: Owned by
dsh-soul-md, stored in<DSH_HOME>\soul-md\memory\<card-name>.md, organized by persona card. - Memory · Part 2: Owned by
dsh-fish-memory, stored in<DSH_HOME>\fish-memory\*.json, organized by session.
The plugin identifies these two plugins by directory name, not by npm package name. If the directory name doesn’t match, you need to point the “Memory Directory” setting under “Data Sources” in the panel to the correct directory.
Cookie Backup Limitation¶
app-state\Network\Cookies is Chromium’s SQLite cookie database. While DSH is running, it holds an exclusive lock, making a direct copy impossible. The plugin attempts 4 retries; on failure it logs skipped: EBUSY and tries once more on exit (best-effort). The most reliable approach is to quit DSH first, then run the backup-now.mjs script or click “Backup Now”—at that point the file is free and will always be copied successfully.
Using the “Backup” Panel¶
The “Backup” panel in the left sidebar contains four tabs:
- Backup Log: Shows the backup root directory, retention days, number of days backed up, total size, and last backup time. One card per day, displaying file count and size broken down by the five layers, with the ability to view specific file names. Supports “Backup Now,” “Refresh,” and “Delete a Day.”
- Cloud Push: Configure OpenList or WebDAV to automatically push a copy to a remote location after each daily backup completes.
- Offline Backup: Generates a local script to run after quitting DSH, used to capture the full Cookies file.
- Data Sources: Displays persona/memory ownership notes, scans for scattered data, and allows custom backup paths.
DSH Version Compatibility¶
| Plugin | DSH | Tested Date |
|---|---|---|
| 1.2.12 | 0.2.2-rc.1 | 2026-11-27 |
| 1.2.11 | 0.2.2-rc.1 | 2026-11-27 |
| 1.2.10 | 0.2.2-rc.1 | 2026-11-26 |
| 1.2.9 | 0.2.2-rc.1 | 2026-11-26 |
| 1.2.8 | 0.2.2-rc.1 | 2026-11-26 |
| 1.2.7 | 0.2.2-rc.1 | 2026-11-25 |
| 1.2.6 | 0.2.2-rc.1 | 2026-11-25 |
| 1.2.5 | 0.2.2-rc.1 | 2026-11-25 |
| 1.2.4 | 0.2.2-rc.1 | 2026-11-25 |
| 1.2.3 | 0.2.2-rc.1 | 2026-11-25 |
| 1.2.1 | 0.2.2-rc.1 | 2026-11-24 |
| 1.2.0 | 0.2.2-rc.1 | 2026-11-24 |
| 1.1.0 | 0.2.2-rc.1 | 2026-11-24 |
| 1.0.4 | 0.2.2-rc.1 | 2026-11-23 |
| 1.0.3 | 0.2.2-rc.1 | 2026-11-23 |
| 1.0.2 | 0.2.2-rc.1 | 2026-11-23 |
| 1.0.1 | 0.2.2-rc.1 | 2026-11-23 |
| 1.0.0 | 0.2.2-rc.1 | 2026-11-23 |
| 0.2.3 | 0.2.2-rc.1 | 2026-11-11 |
| 0.2.2 | 0.2.2-rc.1 | 2026-11-11 |
| 0.2.1 | 0.2.2-rc.1 | 2026-11-07 |
| 0.2.0 | 0.2.2-rc.1 | 2026-11-07 |
| 0.1.1 | 0.2.2-rc.1 | 2026-11-05 |
Use Cases & Notes¶
Suitable for DSH users who need to regularly preserve session state, persona configurations, and memory data. The plugin runs with the permissions of the current DSH process. You should review the source code and license before installing. Backup files are stored only on your local machine or your own cloud storage—nothing is uploaded to third-party services.
In Short¶
Automatically backs up sessions and personas daily to prevent data loss, with support for remote cloud push. For more details, see: SkillHub Plugin Page | GitHub