Disk Utility restore causes `not of type Apple_HFS or Apple_UFS´

When restoring an APFS disk in DiskUtility.app, the process immediately aborts with the error ‘the volume on device dev disk2(source volume) is not of type Apple_HFS or Apple_UFS’. My source drive contains the boot volume formatted as APFS with macOS Catalina 10.15.5. The target is empty but formated with APFS disk of the same size.

I opened a terminal commanded and used asr (Apple Software Restore) to copy the source drive. The asr command runs a two-step process. The first step is erasing the contents of the desition drive. The second step is the replication of every partition of the source drive.

sudo asr --source /Volumes/[Source] --target /Volumes/[Target] --erase --noverify