How can I make the compression and decompression of an archive via ssh with tar command, without creating a temporary file:
I've an exemple:
#!/bin/bash tar -cf - myFile.txt | ssh $IP_SERVER ./ScriptServer.sh
#!/bin/bash tar -x -C ~/backups/ -f -
These code snippet is not mine, and I don’t understand how the
-f - works in the tar command, the man page is useless.