pg_basebackup now supports server-side compression when creating a backup using the --compress flag. This includes gzip, lz4, and zstd (Zstandard) compression.
pg_basebackup
--compress
gzip
lz4
zstd