Created
March 28, 2020 15:20
-
-
Save dustyfresh/0f63903cc7ad0edb44772f06d0a9fee4 to your computer and use it in GitHub Desktop.
dd remote server over SSH
This file contains hidden or 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
#!/bin/bash | |
ssh root@host "dd if=/dev/sda1" | dd of=host.img |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment