Skip to content

Instantly share code, notes, and snippets.

@PetrGlad
Created January 11, 2013 10:36
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save PetrGlad/4509667 to your computer and use it in GitHub Desktop.
Save PetrGlad/4509667 to your computer and use it in GitHub Desktop.
# From http://www.joescat.com/backup/disk_image.html
mount -o username=name,password=secret //server/share backup
dd if=/dev/sda | gzip -c | split -b 638m - backup/backup.img.gz.
# Restoration
cat backup/backup.img.gz.* | gzip -dc | dd of=/dev/sda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment