I need to ssh into server X and then ssh into server Y and tar up a dir (files and dirs), to my MAC laptop. I previously got this from OmarFarid:
ssh username@remoteserver "tar cf - /path/to/dir" | dd of=/path/to/local/dir/mybackup.tar.
I am thinking something like:
ssh username@remoteserver1 | ssh username@remoteserver2 "tar cf - /path/to/dir" | dd of=/path/to/local/dir/mybackup.tar
But not sure. Any help will be appreciated. If by some strange web of circumstances I am right, then the confirmation is still worth 500 pts. I am under the gun on this latest project, and I appreciated you folks help.