2018-10-21 21:44:14 +01:00
|
|
|
# asr
|
|
|
|
|
|
|
|
> Restore (copy) a disk image onto a volume.
|
|
|
|
> The command name stands for Apple Software Restore.
|
2021-08-23 20:33:24 +01:00
|
|
|
> More information: <https://www.unix.com/man-page/osx/8/asr/>.
|
2018-10-21 21:44:14 +01:00
|
|
|
|
|
|
|
- Restore a disk image to a target volume:
|
|
|
|
|
2023-02-20 06:50:10 +00:00
|
|
|
`sudo asr restore --source {{image_file.dmg}} --target {{path/to/volume_file}}`
|
2018-10-21 21:44:14 +01:00
|
|
|
|
|
|
|
- Erase the target volume before restoring:
|
|
|
|
|
2023-02-20 06:50:10 +00:00
|
|
|
`sudo asr restore --source {{image_file.dmg}} --target {{path/to/volume_file}} --erase`
|
2018-10-21 21:44:14 +01:00
|
|
|
|
|
|
|
- Skip verification after restoring:
|
|
|
|
|
2023-02-20 06:50:10 +00:00
|
|
|
`sudo asr restore --source {{image_file.dmg}} --target {{path/to/volume_file}} --noverify`
|
2018-10-21 21:44:14 +01:00
|
|
|
|
|
|
|
- Clone volumes without the use of an intermediate disk image:
|
|
|
|
|
2023-02-20 06:50:10 +00:00
|
|
|
`sudo asr restore --source {{path/to/volume_file}} --target {{path/to/volume_file}}`
|