There's a one-step way to create the compressed backup image without requiring an intermediate file.
cd /media/pi/pibkp
dd if=/dev/mmcblk0 | gzip -c - > mysys.img.gz
I did have a problem with the NTFS filesystem on the USB drive being read-only. Fixed it with:
sudo apt-get remove ntfsprogs...