[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rsync
Subject:    Re: "--include-from=FILE"
From:       Dave Dykstra <dwd () lucent ! com>
Date:       1999-05-06 16:37:57
[Download RAW message or body]

On May 6,  5:32pm, Thorsten Wahl wrote:
> i have any problems to use this option. 
> Who is the right syntax to use this option?
> When i use the following, the option does not work:
> 
> rsync -av -d --include-from=/work/home/..../include.list host:/work/home/...../etc
> 
> In the include list ther are following syntax: /etc/filename
>                                                   /etc/filename1
>                                                   /etc/filename...
> 
> Where ist the bug?
> 
> Thanks for a fast answer, because i have a big problem!

Is the symptom that you're getting all files?  By default, all files are
included; if you do not want that, you need to add "- *" at the end of
our include list or "--exclude *" after your --include-from on the command
line.  You also should include "/etc" in your include.list, though, because
otherwise that directory would be excluded by the "*" and rsync would not
descend into it.  Actually, the parent directories are not required under
certain conditions, when an optimization kicks in, but it is a good idea to
always include them anyway.

- Dave Dykstra

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic