Sometimes we want to create a tarred directory but on a remote host. Here is the command.
Example: To tar the whole /home directory to a tar.gz file on a remote server:

(cd /home; tar cfz - .) |ssh {remote-host} dd of=/backup/filename.tar.gz obs=1024