How to exclude MULTIPLE directories in a rsync command ?

This is a discussion on How to exclude MULTIPLE directories in a rsync command ? within the Linux Networking forums, part of the Linux Forums category; On 7 May, 09:42, Chris Davies <chris-use...@roaima.co.uk> wrote: > In comp.os.linux....


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #11 (permalink)  
Old 4 Days Ago
Nico Kadel-Garcia
 
Posts: n/a
Default Re: How to exclude MULTIPLE directories in a rsync command ?

On 7 May, 09:42, Chris Davies <chris-use...@roaima.co.uk> wrote:
> In comp.os.linux.misc Matthew Lincoln <kmlincoln...@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?

>
> You get good marks for reading the man page. (You'd be amazed how many
> people don't even bother to try...) I think the bit you missed is this:
>
> * * Note also that the --filter, --include, and --exclude options takeone
> * * rule/pattern each. To add multiple ones, you can repeat the options
> * * on the command-line [...]
>
> Personally, I don't find the interaction between the --include/--exclude
> directives particularly intuitive. If it's simply a case of "exclude
> this and that", then you should be fine. However, as soon as I wanted to
> "include this but exclude that", I ended up taking some of the working
> examples (from the man page) and tweaking them until I got something
> that worked.
>
> Chris


Yeah, to get those to work in a sophisticated fashion, it's best to
write a configuration file which you edit for reference, rather than
the comand line.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:44 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0