diskutil list
Replace disk6
with the id of your card.
sudo gdd if=/dev/disk6 of=~/raspi.dmg status=progress
diskutil
sudo diskutil unmountDisk /dev/disk6
sudo gdd if=~/raspi.dmg of=/dev/disk6 status=progress
Roughly 90 minutes to do the Backup with a 128GB SanDisk Extrem Card.
And ~230 min to restore it on a 256GB SanDisk Extreme Pro.
In total including work time up to 340 minutes.
raspberry — Nov 25, 2022