Skip to content

Instantly share code, notes, and snippets.

@hypnoJerk
Last active October 4, 2016 23:56
Show Gist options
  • Save hypnoJerk/d58b0347e3af57872cbba30684b8ce8a to your computer and use it in GitHub Desktop.
Save hypnoJerk/d58b0347e3af57872cbba30684b8ce8a to your computer and use it in GitHub Desktop.
Make SD image backup and restore - linux
#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