I have a bunch of machines on Ubuntu 20.04 as well as a storage server on Ubuntu 20.04.
I'm looking to transfer quickly files of 100 Gb+ to the storage server with Netcat.
I would like to be able to easily transfer the content of a folder with multiple files without having to name them to a folder on the server.
So far I haven't been successful at using Netcat so I would appreciate if someone could give me simple commands that I could just replicate.
Also tell me how to chose the right ports for the transfer.
Lets's assume that I want to transfer all the files that are in /mnt/disk1/files (only the files, not the folder) on a computer with an IP of 192.168.1.22 to /dev/sdc2/folder1 on a computer with an IP of 192.168.1.30.
Example on the receiving computer I used the following command nc -vl 44444 > /dev/sdc2/folder1 and then on the sending computer I used the following command nc -N 192.168.1.30 44444 < /mnt/disk1/files/* I was told that I had to use * when I wanted to send all the files in a folder but it doesn't work. is port 44444