Hi I'd like to have a list of excluded items that I can always use and combine them with job-specific excludes (or generally filters). Is it possible to use --exclude-from more than once? Do I have to combine the exclude files into one and give this to rsync? Is there another possibility (that also works on Windows)? Thanks bye Fabi
Hi Fabi, From the man-page, at the end of FILTER RULES: --- Note also that the --filter, --include, and --exclude options take one rule/pattern each. To add multiple ones, you can repeat the options on the command-line, use the merge-file syntax of the --filter option, or the --include-from/--exclude-from options. --- This implies that --exclude/include/filter options can be repeated on the commandline. Hope this helps, Nico Op 25-5-2016 om 12:00 schreef Fabian Cenedese:> Hi > > I'd like to have a list of excluded items that I can always use > and combine them with job-specific excludes (or generally filters). > > Is it possible to use --exclude-from more than once? Do I have > to combine the exclude files into one and give this to rsync? > Is there another possibility (that also works on Windows)? > > Thanks > > bye Fabi > >-- Email handtekening Nico van der Horn Met vriendelijke groet / With best regards, Nico van der Horn Vanderhorn logo Voorstraat 55 3135 HW Vlaardingen The Netherlands *T * +31 (0)10 - 248 60 60 *W * vanderhorn.nl <vanderhorn.nl> *E * nico at vanderhorn.nl <mailto:nico at vanderhorn.nl> -------------- next part -------------- An HTML attachment was scrubbed... URL: <lists.samba.org/pipermail/rsync/attachments/20160525/5e3b37b0/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: logo-225-36.gif Type: image/gif Size: 5039 bytes Desc: not available URL: <lists.samba.org/pipermail/rsync/attachments/20160525/5e3b37b0/logo-225-36.gif>
At 14:19 25.05.2016, N.J. van der Horn (Nico) wrote:>Content-Transfer-Encoding: 8bit > >Hi Fabi, > > From the man-page, at the end of FILTER RULES: > >--- >Note also that the --filter, --include, and --exclude options take one rule/pattern each. >To add multiple ones, you can repeat the options on the command-line, >use the merge-file syntax of the --filter option, or the --include-from/--exclude-from options. >--- > >This implies that --exclude/include/filter options can be repeated on the commandline.I don't know. As I read this I interpret it that I can repeat single --exclude options, and for several excludes I can use the --exclude-from option. But it doesn't say anything about repeated --exclude-from options. bye Fabi