Hi, Craig Barratt wrote on 2017-03-13 16:38:18 -0700 [Re: [BackupPC-devel] RFE: Combing include and exclude in rsyncd backups]: > On Mon, Mar 13, 2017 at 11:08 AM, Kenneth Porter <sh...@sewingwitch.com> > wrote: > > It would be nice if I could combine exclude and include in an rsyncd > > backup. That way I could back up a subdirectory within a module but still > > exclude directories within that directory. Ie. apply the exclude list after > > the include list. Is this a protocol limitation or a BackupPC limitation? > > In 4.x you can specify both includes and excludes with rsync and rsyncd.
you can also do that in 3.x. It's actually not really "includes" - BackupFilesOnly is emulated by creating includes and excludes that lead to the desired behaviour. After that, BackupFilesExclude is appended to the list, so you should be able to achieve exactly what you want. For Windoze, I believe the syntax is confusing, because you can sometimes specify / as path separator, sometimes \ and sometimes \\ (quoted backslash). Windoze should accept both slash and backslash for file names, but in-/exclude matching may be just string based on either client or server. I never seem to be able to remember how many levels of quoting you need, because I don't use Windoze, but I'm guessing your problem lies there. What exact settings are you using? Hope that helps. Regards, Holger ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ BackupPC-devel mailing list BackupPC-devel@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-devel Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/