On Tue, 2006-01-24 at 17:23 +0000, Francesco Riosa 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. > > > tar -zcf - /var/backup | ssh backup.homelan.com "( cat > data.info.gz )" >
There's another way. This assumes your originating server's CPU is slow/precious and you have a 16 way node on a backup server (HAHA!!) tar cf - /var/backup | ssh backup.homelan.com "gzip -c > filename.tar.gz" But you transfer the stream uncompressed, so more bits get transferred. -- Ow Mun Heng Gentoo/Linux on DELL D600 1.4Ghz 1.5GB RAM 98% Microsoft(tm) Free!! Neuromancer 11:10:24 up 11:00, 6 users, load average: 1.08, 1.04, 1.15 -- gentoo-user@gentoo.org mailing list