WSL 里的 dsh 怎么备份
undohaven snapshot. 在 WSL 里、和 dsh 同一个 Linux 环境中运行 undohaven。快照是这个 Linux 的 DSH_HOME,不是 Windows 家目录。0.2.2-rc.1 的启动器没有专门的 WSL 参数。
步骤
- 在 WSL 的 shell 里看 echo "$DSH_HOME"。空的话,dsh 用这个 Linux 文件系统里的 ~/.dsh。
- undohaven snapshot 默认把加密副本写到 $DSH_HOME/undohaven。
- 恢复到另一台机器时,Linux 布局要能对上。UndoHaven 不会改写快照里的绝对路径。
不用 UndoHaven 时
只复制 Windows 侧的文件夹,会漏掉放在 WSL 文件系统里的 DSH_HOME。要复制或快照那个 Linux 路径。