rsync exclude some folder or file

example:
rsync -avt /home/workspace/symfony2.1_bannieres  /home/local_workspace/admin --delete --exclude-from '/home/local_workspace/exclude_admin.txt'

suppose we have a exclude file in /home/local_workspace/exclude_admin.txt, and his content is :
app/logs
app/cache
.svn
.git
this is the article:
http://articles.slicehost.com/2007/10/10/rsync-exclude-files-and-folders

评论

热门博文