Skip to content

Instantly share code, notes, and snippets.

@nickbauman
Created January 14, 2014 03:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickbauman/8412435 to your computer and use it in GitHub Desktop.
Save nickbauman/8412435 to your computer and use it in GitHub Desktop.
Mac backup your raspberry pi. Requires SSH client, dd, gzip installed
#Mac Backup your Raspberry Pi
#Backup remotely (requires public key exchange for pi account):
ssh pi@raspberry sudo dd if=/dev/mmcblk0 | gzip -c > raspberry.img.gz
#Recover (requires locally mounted disk device rdisk1):
gzip -dc /path/to/raspberry.img.gz | sudo dd of=/dev/rdisk1 bs=1m
@nickbauman
Copy link
Author

This will work on Linux and other *nix as well.

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