rsync -vrtopg --progress root@168.198.87.1:/www/wwwroot/ /data
--progress是显示过程状态
例如
rsync -vrtopg --progress --exclude DAN_lm/data --exclude DAN_lm/logs --exclude DAN_lm/dan512 --exclude DAN_lm/vis --exclude DAN_lm/ct80_crop DAN_lm xxhao@172.26.1.990:~/py/
rsync -vrtopg --progress -e 'ssh -p 25255' --exclude DAN_contrastive/data --exclude DAN_contrastive/logs --exclude DAN_contrastive/dan512 --exclude DAN_contrastive/vis --exclude DAN_contrastive/ct80_crop DAN_contrastive root@10.10.1.126:root/
如果要设置端口
rsync -vrtopg --progress -e 'ssh -p 23333' root@168.198.87.1:/www/wwwroot/ /data
06-17
5933
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-21
1964
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)