What is the canonical way to:scp a file to a remote locationcompress the file in transit (tar or not, single file or whole folder, 7za or something else even more efficient)do the above without saving intermediate filesI am familiar with shell pipes like this:tar cf - MyBackups | 7za a -si -mx=9 -ms=on MyBackups.tar.7zessentially:rolling a whole folder into a single tarpass data through stdout to stdin of the compressing programapply aggressive compressionWhat's the best way to do this over an ssh link, with the file landing on the remote filesystem?I prefer not to sshfs mount.This, does not work:scp <(tar cvf - MyBackups | 7za a -si -mx=9 -so) localhost:/tmp/tmp.tar.7zbecause:/dev/fd/63: not a regular file
scp and compress at the same time, no intermediate save
ssh;tar;scp;7z