rsync排除多个文件实现同步

首先创建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 [email protected]::wwww /tmp/

猜你喜欢

转载自www.cnblogs.com/Dev0ps/p/8962942.html