Imho, probably the most underrated of all Apple utilities, I have successfully cloned my OS X installation on a Ti Powerbook onto a Umax S900L which the standard OS X installer wouldn't even run on. I have also backuped and restored my installation of OS X numerous times without having to start from scratch.
I have always run ASR from OS 9 but apparently there is a command-line variant of ASR for OS X, located in /usr/sbin.
Using ASR to clone volumes
asr -source -target options#
eg. >> asr -source /volumes/aaa -target /volumes/bbb/ -earse
Using ASR to restore image
asr -source -target options#
- Source can be a disk image
- Target can be a /dev entry or a volume mountpoint
eg. >> asr -source /aaa.dmg -target /volumes/bbb/ -earse -nocheck
Using ASR to scan image
asr -imagescan
- Adds checksum information to an image
- Provides a more efficient restore
eg. >> asr -imagescan -source /aaa.dmg
ASR from a webserver
asr -source -target options
– Image url is the path to the disk image on the web server
eg. >> asr -source http//www.aaa.com/aaa.dmg -target /volumes/bbb/ -earse -nocheck