Forse in questo modo (installa la tua chiave pubblica sul ~postgres/.ssh/authorized_keys del telecomando file):
ssh example@sqldat.com 'pg_dump yourdbname | xz -0' |\
xzcat | psql yourdbname
In alternativa, aggiungi una voce nel /etc/sudoers del tuo telecomando file per consentire al tuo utente di eseguire sudo -u postgres pg_dump yourdbname senza password, così puoi eseguire:
ssh example@sqldat.com 'sudo -u postgres pg_dump yourdbname | xz -0' |\
xzcat | psql yourdbname
In entrambi i casi, il dump e il ripristino avverranno contemporaneamente e non verrà creato alcun file di dump.