# Live Bundle Record `run_live_bundle_record.sh` 是当前 `ours` 的单命令 live bundle 录制入口。 它做三件事: 1. 联网执行 **live base recorder** 2. 基于刚录制的 base bundle 执行 **live delta recorder** 3. 产出一个统一的最终目录,包含: - `base-payload-archive/` - `payload-delta-archive/` - `base-locks.json` - `locks-delta.json` - `tal.tal` - `ta.cer` - `base.ccr` - `delta.ccr` - `base-vrps.csv` - `base-vaps.csv` - `record-delta.csv` - `record-delta-vaps.csv` - `bundle.json` - `verification.json` - `timings/` ## 用法 ```bash cd rpki ./scripts/replay_bundle/run_live_bundle_record.sh \ --rir apnic \ --tal-path tests/fixtures/tal/apnic-rfc7730-https.tal \ --ta-path tests/fixtures/ta/apnic-ta.cer ``` 默认输出目录: ```text target/replay/_live_bundle_ ``` 如果要一次录制多个 RIR,使用: ```bash cd rpki ./scripts/replay_bundle/run_live_bundle_record_multi_rir.sh \ --rir afrinic,apnic,arin,lacnic,ripe ``` 默认输出目录: ```text target/replay/live_bundle_matrix_ ``` 每个 RIR 会落到: ```text target/replay/live_bundle_matrix_/_live_bundle_ ``` ## 可选参数 - `--out-dir ` - `--base-validation-time ` - `--delta-validation-time ` - `--http-timeout-secs ` - `--rsync-timeout-secs ` - `--rsync-mirror-root ` - `--max-depth ` - `--max-instances ` - `--trust-anchor ` - `--bin-dir ` - `--no-build` `run_live_bundle_record_multi_rir.sh` 会自动按 RIR 选择当前仓库内置的: - `tests/fixtures/tal/*.tal` - `tests/fixtures/ta/*.cer` 并将 `--trust-anchor` 设置为对应 RIR 名称。 ## 说明 - 该脚本会先构建: - `replay_bundle_capture` - `replay_bundle_capture_delta` - 如果提供 `--no-build`,则直接复用: - `--bin-dir ` 下的现有二进制 - 中间 staging 目录: - `.stage-base` - `.stage-delta` 在成功完成后会清理,只保留最终输出目录。 - 最终输出目录是 **delta 阶段产物**,其中已经包含 base 阶段结果。