rsync排除多个文件实现同步

it2022-05-05  134

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

 

转载于:https://www.cnblogs.com/Dev0ps/p/8962942.html


最新回复(0)