Let's say that I backup a hard drive like so:
This sends a backup of a 75GB hdd to a receiving computer
dd if=/dev/sda | nc IP PORT
Now let's say I buy a 150 GB hdd when the 75GB hdd fails
Time to restore the backup (computer receiving data onto the new hdd)
nc -l -p 1234 | dd of=/dev/sda
1. Can I write directly to a drive like this? (I know the first command works, but what about the second? I'm concerned about writing to an unmounted drive, even though I can read from it)
2. What happens to the other 75 GB of the new hard drive that don't get filled up with data? Will this drive even be usable?