I am trying to backup my machine onto another machine using tar and netcat with no success.
On the receiving machine, I issue a
Code:
nc -vl -p 9000 > image.tar.gz
On the sending machine, I boot with a RIP CD, mount the partition I want to backup as read-only, cd to the mountpoint and issue
Code:
tar czvf - * | nc 192.168.1.2 9000
The processing starts for some time but then appears to hang, without any message.
I then have 0% CPU on both machines but both respond perfectly in other virtual terminals. The filesystem on the receiving end still has space left. Removing compression doesn't change anything.
The last 2 times I checked, the last name to be printed by tar was always the same. The filename of the last processed file has no strange characters.
Has anybody had similar issues?
EDIT: the problem seems to be that tar does not send an EOF to netcat so netcat just seems to continue listening.