View Single Post

  #3 (permalink)  
Old 05-07-2008
Nico Kadel-Garcia
 
Posts: n/a
Default Re: How to exclude MULTIPLE directories in a rsync command ?

On 7 May, 06:57, kmlincoln...@hotmail.com (Matthew Lincoln) wrote:
> As I learned from the man page of rsync I can exclude a certain directory (trees)
> by using the --exclude option like in
>
> rsync .... --exclude=/proc ....
>
> But how do I exclude multiple directory (trees) at once in such a rsync command?
> The following does not work:
>
> rsync .... --exclude=/proc||/var||/dummy ....
>
> Same with "&&" instead of "||"
>
> Matthew


Try 'rsync --exclude=/proc --exclude=/var --exclude=/dummy
Reply With Quote