首先创建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/