ReaderCopilot to Rodel.Reader data migration tool (小幻阅读数据迁移工具)
$ dotnet add package Richasy.ReaderCopilotMigration前置条件: 需要安装 .NET 10 SDK
dotnet tool install --global Richasy.ReaderCopilotMigration
readercopilot-migration --source <源库目录> --target <目标库目录>
| 参数 | 简写 | 说明 | 必填 |
|---|---|---|---|
--source | -s | ReaderCopilot 的库目录 (LibraryPath) | ✅ |
--target | -t | 新库目录(必须为空或不存在) | ✅ |
--lang | -l | 服务实例名称语言 (zh-CN / en-US),默认 zh-CN | ❌ |
--dry-run | 模拟运行,不实际写入数据 | ❌ | |
--continue-anyway | 遇到错误时继续迁移(默认出错则回滚) | ❌ | |
--verbose | -v | 显示详细日志 | ❌ |
# 基本迁移
readercopilot-migration -s "D:\ReaderCopilot\Library" -t "D:\RodelReader\Library"
# 模拟运行(预览迁移内容)
readercopilot-migration -s "D:\ReaderCopilot\Library" -t "D:\RodelReader\Library" --dry-run
# 英文服务名称 + 详细日志
readercopilot-migration -s "D:\ReaderCopilot\Library" -t "D:\RodelReader\Library" -l en-US -v
# 遇错继续
readercopilot-migration -s "D:\ReaderCopilot\Library" -t "D:\RodelReader\Library" --continue-anyway
--dry-run 预览迁移内容确保 --source 指向的是 ReaderCopilot 的库目录(通常包含 bookStore.sqlite、mangaStore.sqlite 等文件)。
使用 --continue-anyway 选项会清空目标目录后继续,或选择一个空目录。
默认情况下,迁移失败会自动清理目标目录。使用 --continue-anyway 可跳过回滚。
MIT © Richasy