On Jan 24, 2006, at 11:46 AM, Tom Smith wrote:

John Jolet wrote:


On Jan 24, 2006, at 11:20 AM, Tom Smith wrote:

Jeff wrote:

Hey guys.

I've got this big fat backup server with no space left on the hard
drive
to store a tar file. I'd like to pipe a tar through ssh, but not sure
what the command would be. Something to the effect of:

# cat /var/backup | ssh backup.homelan.com 'tar data.info.gz'

So that, the data is actually being sent over ssh, and then
archived on
the destination machine.

Help!

:-)


Not possible. What you want is more along the lines of AFS, NFS,
SMB, or
the like.


WRONG.  I do it all the time.

Ok,. my bad. (Open mouth, insert foot. :-D )

Being a *nix junkie, I tend to do some things old school--that is, there
are specific tools that are (dare I say) more specialized to such a
task. You know... SSH = Secure SHell, SCP = Secure CoPy, SFTP = Secure
FTP... So I had never really looked into using the "ssh" program for
copying files between servers--it's always been more of a telnet-like
application for me.

hmmm, old school, eh? I was doing that tar trick about 10 or 11 years ago. you HAVE to do that if you have no room to complete the tar file on the source, THEN transfer it. it's quicker than scping a lot of files and then tarring them up on the destination, especially if THAT doesn't have room for both the source files and the tar. I did extensive performance testing for database migrations about 5 years ago and what I said was by far the most efficient, timewise (though, I didn't simply redirect to a file, but dd of=filename)
--
gentoo-user@gentoo.org mailing list


--
gentoo-user@gentoo.org mailing list

Reply via email to