1. 程式人生 > >rsync排除多個文件實現同步

rsync排除多個文件實現同步

rom ORC list clas txt roo arp localhost AS

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

rsync排除多個文件實現同步