Skip to content

Instantly share code, notes, and snippets.

@mertsalik
Last active May 18, 2017 16:07
Show Gist options
  • Save mertsalik/cf2d01a8f98952ab496d7adb4ca41d2e to your computer and use it in GitHub Desktop.
Save mertsalik/cf2d01a8f98952ab496d7adb4ca41d2e to your computer and use it in GitHub Desktop.

From http://raspberrypi.stackexchange.com/a/312

If you are running Linux then you can use the dd command to make a full backup of the image:

dd if=/dev/diskx of=/path/to/image or for compression:

dd if=/dev/diskx | gzip > /path/to/image.gz Where sdx is your SD card. To restore the backup, you reverse the commands:

dd if=/path/to/image of=/dev/rdiskx
or when compressed:

gzip -dc /path/to/image.gz | dd of=/dev/rdiskx

@mertsalik
Copy link
Author

diskutil list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment