2019-02-26 03:07:09 +00:00
|
|
|
# asr
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
> 将磁盘映像还原(复制)到卷上。
|
|
|
|
> 命令名称是 Apple Software Restore 的缩写。
|
2024-01-31 10:20:27 +00:00
|
|
|
> 更多信息:<https://keith.github.io/xcode-man-pages/asr.8.html>.
|
2019-02-26 03:07:09 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 将磁盘映像复制到目标卷:
|
2019-02-26 03:07:09 +00:00
|
|
|
|
2024-01-01 09:38:53 +00:00
|
|
|
`sudo asr restore --source {{映像名.dmg}} --target {{卷路径}}`
|
2019-02-26 03:07:09 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 在复制之前擦除目标卷:
|
2019-02-26 03:07:09 +00:00
|
|
|
|
2024-01-01 09:38:53 +00:00
|
|
|
`sudo asr restore --source {{映像名.dmg}} --target {{卷路径}} --erase`
|
2019-02-26 03:07:09 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 恢复后跳过验证步骤:
|
2019-02-26 03:07:09 +00:00
|
|
|
|
2024-01-01 09:38:53 +00:00
|
|
|
`sudo asr restore --source {{映像名.dmg}} --target {{卷路径}} --noverify`
|
2019-02-26 03:07:09 +00:00
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
- 不使用中间磁盘映像直接复制卷中的数据:
|
2019-02-26 03:07:09 +00:00
|
|
|
|
|
|
|
`sudo asr restore --source {{卷路径}} --target {{复制卷路径}}`
|