scp question

Página superior
Adjuntos:
Obtener este mensaje como un correo
+ (text/plain)
Eliminar este mensaje
Responder a este mensaje
Autor: Ravi Parimi
Fecha:  
Asunto: 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