Last active
December 12, 2015 06:09
-
-
Save DasLampe/4727396 to your computer and use it in GitHub Desktop.
Copy whole remote HDD-Image to local computer.
In some cases you need dump the whole image of an remote HDD, e.g. you migrate an server and would backup all data. The problem, you can't save the image on the server, because there is no space left. One option is copy the image to another server, but who has a server with enough space. Otherwiess …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh [email protected] 'dd if=/dev/sdX | gzip -c | gpg -r [userid] -e' | pv | cat > ~/image_sdaX.gz.gpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment