I am currently streaming a directory over SSH after compressing it through tar:
tar cz /path/to/foo | pv | ssh HOSTNAME 'tar xmz && some-cool-command'
The issue is that pv doesn't know the total size of the stream so it cannot show me a proper progressbar. I could set it to the size of the /path/to/foo but that won't be correct as the stream is compressed.
Is there a way to work around this and get pv to show a proper progressbar?