Using dd over ssh to create a binary disk dump backup/copy over a network or internet
Create local binary copy with dd
Binary copies of hard disks or even individual partitions can be created with dd. Typically dd is called locally to create an image or clone a drive or partition. Let's assume that we want to create a binary copy of /dev/xvdc3 and save it in a file /tmp/xvdc3.dd:
sudo dd if=/dev/xvdc3 | dd of=/tmp/xvdc3.dd*
By using pv in the middle of the binary data stream, you can also see the current data rate.
sudo dd if=/dev/xvdc3 | pv | dd of=/tmp/xvdc3.dd
The backup of a partition can quickly cover several GB. So if you want to create an image from a disk on a server, the local free space is usually not sufficient.
Create remote binary copy with dd and store locally using SSH
With SSH you can transfer the binary data stream encrypted over a network. Let us assume that we want to save a binary copy of the /dev/xvdc3 partition from a server with the hostname forensic to the file /tmp/xvdc3.dd locally for a forensic analysis.
ssh admin@forensic "sudo dd if=/dev/xvdc3" | pv | dd of=/tmp/xvdc3.dd
Adding data compression of the data stream:
ssh admin@forensic "sudo dd if=/dev/xvdc3 | gzip" | gunzip | pv | dd of=/tmp/xvdc3.dd
binsec academy GmbH - Online IT Security Training with Practical Focus
binsec academy GmbH is provider of online IT security training, offering practical, lab-based courses for professionals. The academy provides hands-on training in areas such as penetration testing and secure software development. Participants gain practical experience through realistic lab environments, including simulations of company networks and applications. Courses are available in multiple programming languages and align with standards like OWASP Top 10 and PCI DSS. Upon successful completion, participants receive certifications such as the Binsec Academy Certified Pentest Professional (BACPP) and Binsec Academy Certified Secure Coding Professional (BACSCP), demonstrating their ability to identify and remediate security vulnerabilities.
Goto binsec acadmy GmbH

binsec GmbH – Experts in Penetration Testing
binsec GmbH is a German IT security company focused on professional penetration testing. With over 10 years of experience, the team conducts in-depth penetration tests on networks, web applications, APIs, and mobile apps. Certified experts systematically identify and document security vulnerabilities to support organizations in improving their security and meeting compliance requirements.
Goto binsec GmbH