1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-28 22:24:55 +02:00
tldr/pages.zh/osx/asr.md
2019-11-02 17:47:23 +00:00

20 lines
570 B
Markdown

# asr
> 将磁盘映像还原(复制)到卷上.
> 命令名称是 Apple Software Restore 的缩写.
- 将磁盘映像复制到目标卷:
`sudo asr restore --source {{映像名}}.dmg --target {{卷路径}}`
- 在复制之前擦除目标卷:
`sudo asr restore --source {{映像名}}.dmg --target {{卷路径}} --erase`
- 恢复后跳过验证步骤:
`sudo asr restore --source {{映像名}}.dmg --target {{卷路径}} --noverify`
- 不使用中间磁盘映像直接复制卷中的数据:
`sudo asr restore --source {{卷路径}} --target {{复制卷路径}}`