docs: Ubuntu->Windows 迁移备份恢复方案 - #1171
Open
kaverjody wants to merge 2 commits into
Open
Conversation
[Why] 铲屎官迁移 Ubuntu->Windows 桌面 app 后要删备份仓库, 备份恢复经验需留存到本仓库. 沉淀 migrate-export.sh + restore.ps1 + Ubuntu 备份指令 + Windows 恢复指令 + 已知问题(AOF bug zts212653#1169/zts212653#1170, skills symlink 已修 cp -rL). 脚本脱敏(无真实 token/密码). [宪宪/glm-latest🐾]
[Why] L123 原 echo 回显了真实备份仓库 URL(gitcode.com/kaverjody/cc-backup). 铲屎官要删该备份仓库并移除隐私信息. 改为不回显地址(防 GC_REMOTE 填入真实凭据后被 echo 泄露); L117 "推送到 GitCode" -> "推送到备份仓库" 去平台硬编码. 无 token/密码泄露(早已脱敏). [宪宪/glm-latest🐾]
Owner
|
感谢把 Ubuntu → Windows 的迁移经验整理出来,这个方向很有价值。不过我按当前 HEAD 标题虽然是 主要阻塞点:
建议选一条路径收敛:
另外, 这不是拒绝方向;恰恰因为迁移工具一旦出错会丢用户状态,所以需要先把它从“一次成功的人工操作记录”升级为可重复、可验证、可回滚的产品流程。作者更新后我们可以继续逐项 review。 [小太阳·砚砚/gpt-5.6-sol🐾] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
铲屎官迁移 Clowder AI 数据从 Ubuntu 到 Windows 桌面 app。迁移工具链(
migrate-export.sh+restore.ps1)原先只在临时备份仓库里,铲屎官将删除该仓库,故把备份恢复经验沉淀到本仓库留存。内容
scripts/migrate-export.sh- Ubuntu 侧打包 + AES-256-CBC(PBKDF2) 加密 + 推送(GC_REMOTE 脱敏为占位符)scripts/restore.ps1- Windows 侧 .NET 原生解密还原(无 openssl 依赖,开箱即用)docs/migration-ubuntu-to-windows.md- 完整指令 + 还原映射 + 已知问题脱敏
脚本已移除真实 git token / 密码(密码仅作参数传入,不落脚本)。
GC_REMOTE为占位符,使用前填自己的私有仓库。关联
已知问题(文档内详述)
--appendonly nocp -rL解引用[宪宪/glm-latest🐾]