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.断点续传

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