[NTLUG:Discuss] Using SCP (SSH?) in a pipe
MadHat
madhat at unspecific.com
Fri Mar 15 12:34:17 CST 2002
On Fri, 2002-03-15 at 12:10, Chris Cox wrote:
> Kenneth Loafman wrote:
>
> >I think I saw it here...
> >
> >What I want to do is:
> >
> > tar cvz filelist | scp user at backup:foo
> >
> >but there's some magic I'm missing. Any clues? I've gone blank.
> >
> How about:
>
> tar cvz filelist | ssh -l user backup 'cat >foo'
>
> There might be a way to do this with scp as well.... ??? (would seem
> weird to me though)
too used to dealing with files, always forget STDOUT is default without
the f option.
--
MadHat at Unspecific.com
gpg --keyserver wwwkeys.us.pgp.net --recv-keys 9DDC3E98
Key fingerprint = E786 7B30 7534 DCC2 94D5 91DE E922 0B21 9DDC 3E98
More information about the Discuss
mailing list