sftp

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Kevin Buettner
日付:  
題目: sftp
On Jun 10, 1:24pm, Carl Parrish wrote:

> Kevin when you tar a file does it create a copy or does it effect
> the original? The directories I need to more are on a semi public
> box and will be in use during the transfer.


It doesn't modify the original file.

If you don't want to create a copy of the directories that you're
transferring, you can do it something like this:

cd somewhere
tar cf - somedir1 somedir2 | ssh remote.host.com 'cd somewhereelse; tar xvf -'

Or:

  ssh remote.host.com 'cd somewhere; tar cf - somedir1 somedir2' \
    | ( cd somewhereelse; tar xvf - )


Kevin