scp question

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Ravi Parimi
Date:  
Subject: 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