[NTLUG:Discuss] Using SCP (SSH?) in a pipe

Chris Cox cjcox at acm.org
Fri Mar 15 12:10:33 CST 2002


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)






More information about the Discuss mailing list