Skip to content

Instantly share code, notes, and snippets.

@ShannonScott
Last active July 7, 2020 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ShannonScott/1d976b2f01a37dc4b7f81b464aed602f to your computer and use it in GitHub Desktop.
Save ShannonScott/1d976b2f01a37dc4b7f81b464aed602f to your computer and use it in GitHub Desktop.
[RPi SD Card Backup] Backup the SD card from a Raspberry Pi from a Mac. #tags: mac, raspberrypi

Backup SD card to Mac

List devices

diskutil list

Copy SD card to Mac

sudo dd bs=4m if=/dev/diskN of=rpi.`date +%d%m%y`.img

Restore image to SD card

Unmount disk

sudo diskutil unmount /dev/diskN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment