第二台设备恢复

gstore迁移

第二台设备恢复

新机器安装管理器与 gstore,使用自己的 gh 登录状态,绑定已有仓库。不要复制另一台机器的认证文件。

npm install -g @holic512/slothtool
slothtool install gstore
slothtool gstore auth
slothtool gstore repo set YOUR_ACCOUNT/slothtool-data
slothtool gstore status --json

账号和仓库替换为已有远端,不加 --create。

新机器也可能已有默认配置。先备份有价值的本地内容;仅在确定远端为准时执行:

slothtool gstore pull --prefer-remote

这可能覆盖本地设置,且无绑定参数的操作会处理当前绑定集合。不能把它当作不影响现有数据的普通读取。

恢复配置后仍需按需求安装插件,例如:

slothtool install loc
slothtool install pzip
slothtool loc config show
slothtool pzip config show

核对代理主机、端口、绝对路径,再检查 gstore 状态。插件二进制与 registry 不跨设备同步;不要用复制旧目录来跳过平台安装校验。

自定义绑定保存在 gstore 自身配置里,不由系统范围传输,新设备需重新映射同名绑定到本机目录。Skill 链接也需在新设备验证。