Skip to content

Instantly share code, notes, and snippets.

@dustyfresh
Created March 28, 2020 15:20
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 dustyfresh/0f63903cc7ad0edb44772f06d0a9fee4 to your computer and use it in GitHub Desktop.
Save dustyfresh/0f63903cc7ad0edb44772f06d0a9fee4 to your computer and use it in GitHub Desktop.
dd remote server over SSH
#!/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