backup through tar command on remote tape

Hello Everybody

I have two servers, name A & B. I need to take a backup of one directory(/girish) on serverA. But my tape drive is in serverB through tar command. But when I run the following command it doesn't take the backup. Could any one correct my command to take a backup

tar cvf - /girish | rsh serverB dd of=/dev/rmt/0

I know one thing is that if I have to take a backup through ufsdump command then I just need to make an entry in .rhosts of the server B having tape drive for the server who is going to use it. And after making an entry I had easily took the backup.