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:
ScriptClient.sh
#!/bin/bash
tar -cf - myFile.txt | ssh $IP_SERVER ./ScriptServer.sh
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.