# 迁移脚本草稿(不要直接全量拷贝) 本目录配合 [03-static-resource-migration.md](../03-static-resource-migration.md)。默认都是盘点 / dry-run。 | 文件 | 作用 | | --- | --- | | `00-inventory.ps1` | 打印 html junction 与网盘顶层名 | | `01-build-mapping.py` | 从 book-index + 牛津树目录生成 `mapping/books.csv`、`url-rewrites.csv` | | `02-migrate.ps1` / `02-migrate.sh` | 硬链接或复制;默认 DryRun | | `03-hash-manifest.py` | SHA-256 manifest;扫到 learning 即失败 | | `04-pack.ps1` | core zip + 单书 zip;排除学习记录 | | `05-cutover.md` | 切换 / 回滚命令清单 | | `restore-junctions.ps1` | 恢复 win-link.bat 原 junction | | `nginx-estudy-static.conf.snippet` | Win/Linux 共用 alias 草稿 | 建议顺序:`00` → `01` → `02 -FilterBookId stage-03__AtTheSeaside`(DryRun)→ 浏览器抽查 → **先挡** `/estudy/data/learning/` → 再考虑全量。 `book_id` 是逻辑键 `{stage}__{img_folder}`(可含撇号);磁盘目录是 `fs_slug`。不要用 slug 当 FilterBookId,除非二者相同(试点书 `AtTheSeaside` 相同)。