Skip to content

Instantly share code, notes, and snippets.

@DDiimmkkaass
Created August 10, 2016 06:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DDiimmkkaass/221d0aa1075db6e4a23c3684c7e0bf0b to your computer and use it in GitHub Desktop.
Save DDiimmkkaass/221d0aa1075db6e4a23c3684c7e0bf0b to your computer and use it in GitHub Desktop.
бекап
mkdir /mnt/backup
mount /dev/sdb1 -- какая то флешка или винт
dd if=/dev/sda bs=8M conv=sync,noerror | gzip -c > /mnt/backup/sda.img
відновлення
gunzip -c /mnt/backup/sda.img | dd of=/dev/sda conv=sync,noerror bs=8M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment