SCP传输文件和断点续传
生活随笔
收集整理的這篇文章主要介紹了
SCP传输文件和断点续传
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.上傳文件
scp /tmp/test.tar root@192.168.1.190:/home/test.tar
2.下載文件
scp root@192.168.1.190:/home/test.tar /tmp/test.tar
3.上傳整個目錄
scp -r /tmp/testdir root@192.168.1.190:home
4.下載整個目錄
scp -r root@192.168.1.190:home/testdir /tmp
5.斷點續傳
scp /tmp/test.tar root@192.168.1.190:/home/test.tar
2.下載文件
scp root@192.168.1.190:/home/test.tar /tmp/test.tar
3.上傳整個目錄
scp -r /tmp/testdir root@192.168.1.190:home
4.下載整個目錄
scp -r root@192.168.1.190:home/testdir /tmp
5.斷點續傳
rsync -P --rsh=ssh /tmp/test.tar 192.168.1.190:/home/test.tar
6. 在后臺運行, ?退出shell進程不會退出
nohup ?/tmp/test.tar root@192.168.1.190:/home/test.tar
Ctrl+Z
總結
以上是生活随笔為你收集整理的SCP传输文件和断点续传的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 16位汇编 int 10h和int 21
- 下一篇: iptables的配置实例