tar czf - -C /path/to/src/dir foo.txt bar.txt | \
ssh remote.example.net 'sudo tar zxvf - -C /path/to/dest/dir'tar -chf - -C /path/to/src/dir .' | \
ssh remote.example.net 'sudo tar zxvf - -C /path/to/dest/dir'ssh src.example.net 'sudo tar -chf - -C /path/to/src/dir .|cat' | \
ssh dest.example.net 'sudo tar xf - -C /path/to/dest/dir'