UndoHaven · Pricing · Docs · Plugins · Log gate · Encryption · What we see · Log in · Account · 中文

Move dsh to a new machine without mixing the two homes

A hand move is the archive from the backup page, unpacked on the other machine. Install the same @deepseek-ai/dsh version that wrote the archive. A newer log opened by an older build is refused. Paths inside storages/workspace.json are absolute paths from the old machine.

Fix it by hand

  1. On the old machine, quit dsh and make the hand archive. Carry the archive yourself. It is a private copy of the home.
  2. On the new machine, install that same version, then move a freshly created home aside: mv "${DSH_HOME:-$HOME/.dsh}" "$HOME/dsh-home-fresh". Unpack with tar into the home directory, not into the fresh directory.
  3. Open $DSH_HOME/storages/workspace.json and see whether each recorded directory exists here. If it does not, put the project at that path. Do not ask an agent to invent a new location before this check.
  4. If node_modules were excluded, reinstall from the profile lockfile after pnpm is available. That reinstall command was not run in this check.

A restored tree keeps the old absolute paths. UndoHaven does not rewrite them either. Machine migration in UndoHaven is a Pro feature and still needs the passphrase you chose.

Optional encrypted snapshot

Optional. UndoHaven is an unofficial third-party, compatible with dsh. Copy the directory by hand first, then use an encrypted snapshot if you want one.

npx undohaven init

  1. Install: copy this command.
  2. First snapshot: it stays encrypted on this machine.
  3. Roll back: undohaven restore --to SNAPSHOT_ID

Free covers 7 days of history and 1 device. Pricing

Related