Hi, Arch Willingham wrote on 27.10.2007 at 10:49:24 [Re: [BackupPC-users] Can't get excludes to work]: > When all else fails, try em' all! I don't know which part fixed it but this > ended up working: > > $Conf{BackupFilesExclude} = { > '\\backup\\*' => [ > '' > ],
that one is nonsense ... > '/backup/*' => [ > '' > ], ... and that one too. The hash key is the share the exclude applies to, and I doubt you have a share named "\backup\*" or "/backup/*". Even if you do, you would be asking BackupPC to exclude the file "" from that share. > '*' => [ > '\\backup\\*', > '/backup/*' > ] I believe both of these would work, but I'm no SMB expert. Note that your excludes apply to every share you happen to back up, not just 'C$' (or whatever it's named). Note also that if you *add* excludes for the share ('C$' => [ 'foo' ]), the default excludes ('*') will no longer apply. As a side note, at least DOS system calls *do* actually recognize '/' as a path separator. It's just not much fun getting command.com to pass along slashes in parameters :). As for Windoze, I wouldn't be surprised if that is still true, if just because they didn't find the code they would have had to take out. I believe, though, that it is smbclient that implements the excludes, so it would make sense to recognize both the native path separator of the host system (UNIX, /) and the client, err, server, err, remote Windoze system where the accessed files lives. What you probably really want is either $Conf{BackupFilesExclude} = { 'C$' => [ '/backup/*' ] }; or $Conf{BackupFilesExclude} = { 'C$' => [ '\backup\*' ] }; (presuming your share name is really 'C$'; adjust accordingly if it is not). Regards, Holger ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net List: https://lists.sourceforge.net/lists/listinfo/backuppc-users Wiki: http://backuppc.wiki.sourceforge.net Project: http://backuppc.sourceforge.net/