Last active
October 4, 2016 23:56
-
-
Save hypnoJerk/d58b0347e3af57872cbba30684b8ce8a to your computer and use it in GitHub Desktop.
Make SD image backup and restore - linux
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
#First take note of which drive, and replace sdb with your volume name. | |
#Create Backup | |
sudo dd bs=4M if=/dev/sdb | gzip > /home/your_username/image'date +%d%m%y'.gz | |
#Restore backup | |
sudo gzip -dc /home/your_username/image.gz | dd bs=4M of=/dev/sdb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment