Monitor zfs send with pv

Hi, I have been attempting to monitor a zfs send with pv using the Nixcraft tutorial here.

This is what I have done:

zfs send pool/dataset@snap | pv | ssh user@host zfs recv -F pool/dataset

If you scroll down on the tutorial you will see two sample outputs for the following example:

pv -cN rawlogfile origin-cdn.cyberciti.org_access.log | gzip | pv -cN gziplogfile > access.log.gz

One is labelled “rawlogfile” and the other is labelled “gziplogfile”.

The output I am getting is the “gziplogfile” which does not show the percentage transferred or the ETA. The output I want is the “rawlogfile” output which does.

Does anyone know how this can be achieved?

Thank you.