[DD]: Backup whole hdd via ssh

Local:

dd if=/dev/sda | gzip -1 - | ssh user@local dd of=image.gz

Remote:

ssh user@remote "dd if=/dev/sda | gzip -1 -" | dd of=image.gz

Restore remote: – ??

wget http://example.com/image.gz | gunzip -c - | dd of=/dev/sdX

Source

Leave a Reply

Your email address will not be published. Required fields are marked *