Created
January 14, 2014 03:16
-
-
Save nickbauman/8412435 to your computer and use it in GitHub Desktop.
Mac backup your raspberry pi. Requires SSH client, dd, gzip installed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This will work on Linux and other *nix as well.