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.
[snip]
> >
> > 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  )"
> 
> something similar, probably is possible to avoid the use of cat bat
> don't came in mind at the moment

wow, I am quite blown away - not only at the fact that I just tried the
above command (and it worked of course) but also that I've found a new
way of doing something that I never thought of before.

This is one to remember!

(now, if only I'd backed up yesterday, before I did an accidental `rm *`
instead of `rm *~`)
-- 
Iain Buchanan <iain at netspace dot net dot au>

It's not?  Are you saying that you SHOULD allow people (other than William
Wallace) to shoot lightning bolts from their arse?
        -- Seth Galbraith

-- 
gentoo-user@gentoo.org mailing list

Reply via email to