利用Rsync同步工具上传、删除目标文件

Rsync是文件备份工具,当然也可以当做传输工具,管理远程服务器的文件

上传

rsync -avzP --progress --port 9106 /path/.../指定文件 root@192.168.09.12::path --password-file=/path/.../rsyncd.password

删除

rsync -avzP --include='+ /指定文件' --include='- /*' --delete /空目录/ /指定文件所在目录/

未完待续……

 
 http://blog.csdn.net/tmt123421/article/details/52511497
posted @ 2016-07-07 17:31  findumars  Views(1225)  Comments(0Edit  收藏  举报