參考
http://kennyp.pixnet.net/blog/post/18303839
http://marcustsai.blogspot.com/2009/12/rsync-server.html
To Exclude Multiple Files and Directories
Example 1
rsync -av --exclude '*.txt' source/ destination/
Example 2
create /root/rsync.exclude as following:
*.txt
*.log
rsync -av --exclude-from '/root/rsync.exclude' source/ destination/
沒有留言:
張貼留言