| 2 | 1/1 | 返回列表 |
| 查看: 434 | 回復: 1 | ||
w76990480榮譽版主 (文壇精英)
super-emuch
|
[求助]
openssh 通過tar的方法快速傳遞文件
|
|
聽說tar結合ssh可以快速傳遞文件,不知道怎么實現(xiàn),高手來解答! [ Last edited by w76990480 on 2011-5-12 at 19:06 ] |

榮譽版主 (著名寫手)
天池冶海
|
遠程比較文件 ssh remote-hosts cat memos/memo.draft | diff memos.new - cat memos.new | ssh speedy diff - memos/memo.draft#diff <(ssh -n george cat /etc/passwd) <(ssh -n kramer cat /etc/passwd) 打包文件并直接傳遞到遠程目錄解開(不在本地生成文件) tar cf - some_directory | ssh kramer "( cd /path/to/destination; tar xf - )" ssh 192.168.100.166 tar -cf - /var/www/html/centos/5/repodata |cat > tt.tar ssh 192.168.10.145 tar -czf - '--exclude=*.gz' '--exclude=*.tgz' '--exclude=*.tar' /a8root/phpweb/website/images 直接獲取遠程文件tar并在本地保留 ssh 192.168.100.166 "find /var/www/html/centos/5/repodata -depth -print | cpio -oaV" | cat > tt.cpio |

| 2 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 343求調劑085601 +3 | 要努力學習x 2026-03-29 | 3/150 |
|
|---|---|---|---|---|
|
[考研] 322求調劑:一志愿湖南大學 材料與化工(085600),已過六級。 +4 | XX小鄧 2026-03-29 | 4/200 |
|
|
[考研] 070305高分子化學與物理 304分求調劑 +12 | c297914 2026-03-28 | 12/600 |
|
|
[考研] 22408 359分調劑 +4 | Qshers 2026-03-27 | 6/300 |
|
|
[考研] 340求調劑 +6 | Amber00 2026-03-26 | 6/300 |
|
|
[考研] 學碩274求調劑 +9 | Li李魚 2026-03-26 | 9/450 |
|
|
[考研] 083000學碩274求調劑 +8 | Li李魚 2026-03-26 | 8/400 |
|
|
[考研] 286求調劑 +12 | PolarBear11 2026-03-26 | 12/600 |
|
|
[考研] 【求調劑】085601材料工程專碩 | 總分272 | +6 | 腳滑的守法公民 2026-03-27 | 6/300 |
|
|
[材料工程] 一志愿C9材料與化工專業(yè)總分300求調劑 +8 | 曼111 2026-03-24 | 9/450 |
|
|
[考研] 311求調劑 +3 | 希望上岸阿小楊 2026-03-23 | 3/150 |
|
|
[考研] 一志愿上海理工能源動力(085800)310分求調劑 +3 | zhangmingc 2026-03-27 | 4/200 |
|
|
[考研] 材料292調劑 +12 | 橘頌思美人 2026-03-23 | 12/600 |
|
|
[考研] 085600,材料與化工321分,求調劑 +9 | 大饞小子 2026-03-27 | 9/450 |
|
|
[論文投稿] Journal of Mechanical Science and Technology +3 | Russ_ss 2026-03-25 | 5/250 |
|
|
[考研] 292求調劑 +4 | 求求了收下我吧?/a> 2026-03-26 | 4/200 |
|
|
[考研]
材料學碩,求調劑
6+5
|
糖葫蘆888ll 2026-03-22 | 10/500 |
|
|
[考研] 材料與化工328分調劑 +6 | 。,。,。,。i 2026-03-23 | 6/300 |
|
|
[考研] 生物學學碩求調劑 +7 | 小羊睡著了? 2026-03-23 | 10/500 |
|
|
[考研] 化工專碩求調劑 +3 | question挽風 2026-03-24 | 3/150 |
|