rsync excludes multiple files for synchronization

First create the exclude directory and put it in the xx.list exclusion file.

[root@localhost tmp]# cat /exclude/a_exclude.list
a.txt
to
————————————————————————
a.txt - file

lai - directory
————————————————————————

rsync command:

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

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324972142&siteId=291194637