码迷,mamicode.com
首页 > 其他好文 > 详细

rsync排除多个文件实现同步

时间:2018-04-27 16:51:10      阅读:118      评论:0      收藏:0      [点我收藏+]

标签:force   多个   命令   root   roo   nc命令   pre   pass   host   

首先创建exclude目录放入xx.list排除文件。

[root@localhost tmp]# cat /exclude/a_exclude.list
a.txt
lai
————————————————————————
a.txt——文件

lai——目录
————————————————————————

rsync命令:

[root@localhost tmp]# rsync -avz --delete --force --password-file=/etc/rsync.password --exclude-from=/exclude/a_exclude.list root@192.168.247.135::wwww /tmp/

 

rsync排除多个文件实现同步

标签:force   多个   命令   root   roo   nc命令   pre   pass   host   

原文地址:https://www.cnblogs.com/Dev0ps/p/8962942.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!