dd
Backing Up and Restoring Drives
-
https://osxdaily.com/2018/04/18/write-image-file-sd-card-dd-command-line/
-
https://askubuntu.com/questions/227924/sd-card-cloning-using-the-dd-command
-
List drives:
diskutil list -
If mounted volume, run
diskutil unmountDisk force /dev/whatev -
Back up:
sudo dd if=/dev/whatev of=/path/to/file.img bs=1m status=progress -
Restore:
sudo dd if=/path/to/file.[img|dd] of=/dev/whatev bs=1m status=progress
Slapdash