# Using `dd` and `ssh` to copy a disk image over a network

```bash
dd if=/dev/sdX | ssh user@remotehost "dd of=ops-tools.img"
```

# Another Way

On the Sourcemachine

```bash
 tar zcf - /* | nc $IP 4444
```

 And on the Destination Machine
 
```bash
 nc -lp 4444 > backup.tar.gz
```