View Single Post

  #9 (permalink)  
Old 05-07-2008
Bruce Esquibel
 
Posts: n/a
Default Re: How to exclude MULTIPLE directories in a rsync command ?

In comp.security.ssh Matthew Lincoln <kmlincoln100@hotmail.com> 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:



Check the man page for --exclude-from=

You just need to set up a simple text file will all the excludes and call
rsync with the --exclude-from= to read the file in.

-bruce
bje@ripco.com
Reply With Quote