I was reading an answer regarding sending large files from one Linux system to another by quick methods, and I was trying this solution
The answer is saying that if you don't want to use the tar command, you can use the cat command instead [Like if you for example already have a tar file and you don't want to create another one, you can use the cat command instead directly]
So I have this command that I want to execute:
sam@sam:~/Documents$ cat test.mp4 | mbuffer -s 1K -m 512 | ssh 192.168.1.33 "cat > ~/Documents/here/test.mp4"
What I am trying to do using the above command is to send a large file (test.mp4) from the Linux machine (A) to the Linux machine (B). The file (test.mp4) is available on the Linux machine (A) at ~/Documents, what I want to do is to send this file from the Linux machine (A) to the Linux machine (B) on ~/Documents/here
However, running the above command does not send the file, but instead, the Linux machine (B) is creating a plain-text file called test.mp4.
So the problem is that the cat command needs a way to read the input from the previous command, Got it :D?
[Edit]: After running the command above, I always get the following warning message
mbuffer: fatal: Number of blocks must be at least 5.