scp question

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: Ravi Parimi
Dátum:  
Tárgy: scp question
> /_scp -rp :some/path .
> /_
> /_Note the -rp switch. ("r" for recursive, "p" to preserve times and
> /_permissions.)
>
> I think the key I was missing was leaving off the "*" at the end of what I wanted.


Recently, I found out that you can run tar over ssh to transfer a complete
directory structure from one machine to another using ssh.

I dont think ssh -r will copy sub-directories etc...

tar cvf - dir/ | ssh "cat > dir.tar" does a great
job of replicating the directory structure completely onto the remote
machine...


--ravi