Backup Full Disk in Linux
#sudo fdisk /dev/sda to get size
dd if=/dev/sda | pv -s SIZE | gzip --fast > output.img
gunzip output.img } pv -s SIZE | dd of=/dev/sda
{% gist 831d6a057d2ee9c59a04 test.java %}
#sudo fdisk /dev/sda to get size
dd if=/dev/sda | pv -s SIZE | gzip --fast > output.img
gunzip output.img } pv -s SIZE | dd of=/dev/sda
{% gist 831d6a057d2ee9c59a04 test.java %}