It would be super useful to me to see this with a bit more detail, in case you have/know a writeup somewhere!
[0] https://coderwall.com/p/bmv0nw/dump-postgres-databases-throu...
# from host1:
cd $DIRECTORY && tar -jcf - . | ssh host2 "cd DESTINATION_DIR && tar jxvf - "