1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 11:44:54 +02:00
tldr/pages.zh/osx/asr.md
2019-02-26 18:50:35 +00:00

20 lines
568 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 {{复制卷路径}}`