scp question

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Ravi Parimi
日付:  
題目: 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