I was able to do a disk to disk copy of a clean install of Catalina.
Things to watch out for:
1. the machine cannot have any snapshots present (it conflicts with inversion).
2. After the copy, ASR inverts the APFS disk and copies data back to the appropriate volumes.
3. I don't know much about the inversion, but the ASR man page explains it.
4. A disk to disk copy was fast, it does the following:
- erases the disk (zero's it out quickly).
- copies just the data, not the empty space.
- no need for long or elaborate workarounds.
Some truncated output:
Code:
Mac-Pro ~ % sudo asr --source /dev/disk7 --target /dev/disk12 -erase -noverify -noprompt -puppetstrings
XSTA start 505 client
XSTA setup
Validating target...done
XSTA metadata
Validating source...done
Validating sizes...nx_kernel_mount:1387: : checkpoint search: largest xid 1574, best xid 1574 @ 67
done
nx_kernel_mount:1387: : checkpoint search: largest xid 1574, best xid 1574 @ 67
XSTA restore
PSTT 0 100 start restore
PINF 50 100 restore
PINF 100 100 restore
PSTP 100 100 stop restore
Inverting target volume...done
PSTT 0 100 start datacopy
Failed to stat file /Volumes/Catalina3/AppleInternal, error No such file or directory
PINF 2 100 Copy data volume
PINF 100 100 Copy data volume
Restored target device is /dev/disk12s1.
XSTA finish
[doublepost=1560703249][/doublepost]The advantage of asr is the volumes are restored as a unique volume. dd's restores such an exact duplicate that they end up sharing the same container.