Holger Parplies wrote: >Hi, > >Mark Sopuch wrote on 19.05.2007 at 23:58:39 [[BackupPC-devel] incremental >doesn't stay within filter]: > > >>(Note: This post originally sent into the users list >> >> > >... probably got no answers because you provided no information required to >help you ... > > You are quite right and I can do better. Promise.
> > >>more generally but >>is now further qualified and posted into the dev list for resolution.) >> >> > >Posting first "more generally" means you were looking for a "general" answer >like "looks like something is going wrong", but now you really want to resolve >the matter? :-) > > And thank you for even getting this far on the little info. >I'm posting back to <backuppc-users>. What makes you think it's not a >configuration error? It seems to work for others (at least I haven't heard >anything to the contrary). > > It is possible yes. It is just that everything works so beautifully out of the box and when the filter worked for full backup but only partially for incremental it threw me to confusion. When I say partially working for incremental I mean that the data from within the include filter get backed up but I get attrib stubs for everything else on the c share. > > >>$Conf{BackupFilesOnly} = { >> 'c' => [ >> '/nucoda/*' >> ] >>}; >> >> > >Ah, some information. That's a start (if not more). > > It is the only filter I have set and it is in the per-host config. No filters in my global config. > > >>So, using the default BackupPC installed smbclient command for incremental: >> >> > >BackupPC includes no smbclient command. That's from the Samba suite. Or were >you referring to the default configuration setting of >$Conf{SmbClientIncrCmd}? > > > Yep this one SmbClientFullCmd $smbClientPath \\$host\$shareName $I_option -U $userName -E -N -d 1 -c tarmode\ full -Tc$X_option - $fileList and this one SmbClientIncrCmd <http://tomato:8080/cgi-bin/BackupPC_Admin?action=view&type=docs#item__conf_smbclientincrcmd_> $smbClientPath \\$host\$shareName $I_option -U $userName -E -N -d 1 -c tarmode\ full -TcN$X_option $timeStampFile - $fileList This is out of the box BackupPC config. >>(eg. $smbClientPath \\$host\$shareName $I_option -U $userName -E -N -d 1 >>-c tarmode\ full -TcN$X_option $timeStampFile - $fileList) >> >> > >I see different amounts of quoting (backslashes) in the default setting, so >this is probably not a verbatim quote from your configuration (much less an >indication of the command actually run). Quoted from memory? > > It is verbatim. Cut-paste default config. >The obvious thing to compare would be SmbClientFullCmd and SmbClientIncrCmd. > > See above please. >Oh, and anyone considering to help you will obviously want to know (among >many other things) which version of BackupPC you are talking about. > > Sorry. Here it is for distro, apache+mp2, backuppc, smbclient ... Linux tomato 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 i686 i386 GNU/Linux AUTH_TYPE="Basic" SERVER_SOFTWARE="Apache/2.2.4 (Unix) mod_perl/2.0.3 Perl/v5.8.5" MOD_PERL="mod_perl/2.0.3" MOD_PERL_API_VERSION="2" SERVER_PROTOCOL="HTTP/1.1" The servers PID is 12571, on host tomato, version 3.0.0, started at 5/19 22:12. Version 3.0.10-1.4E.9 You could say that everything is the very latest stable build. I have absolutley no problems except for this incremental filtering stub creation phenomenon. > > >>Assuming filters apply equally to both full and incremental in BackupPC >>[...] >> >> > >Filters don't "apply in BackupPC". Filters are used to construct arguments >to the commands run to gather the data - smbclient in your case. > Sure, I guess what I meant was that I was assuming that include and exclude list processing by BackupPC use the same filter definitions ie. $Conf{BackupFilesOnly} >It's entirely >possible to misconfigure the command settings to defeat this purpose. > > I believe that as a first time user of BackupPC the command settings for smbclient are ready to go are they not? If so, then the contribution of the default commands as pasted above to the filtering phenomenon during incrmental (that I am experiencing at least) probably needs some discussion if you don't mind. Beyond the required config in the install recipes I have only changed two settings in BackupPC config, honest. These are the two: Globally BackupsDisable = 1 Per-host(override) BackupFilesOnly (c share) = /nucoda/* Okay, now that I have pasted this in I have a funny feeling the c should be a c$ (seeing the SmbShareName = c$). Could this be the answer? As far as I can remember I must have primed the per-host config with the empty $Conf{BackupFilesOnly}hash in order to get the ADD/DELETE buttons in the Web UI but primed it with c - not c$ ... $Conf{BackupFilesOnly} = { 'c' => [ '/nucoda/*' <--- added with the web ui ] }; If this was the problem the question would still need to be asked about why Full could handle using the filter as I had it but Incremental could'nt? >Regards, >Holger > > Thanks Holger and thanks all. Please excuse my slackness earlier and soon as I have tested the config using c$ versus c in the filter hash I'll get back to you all with the results. Mark ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ BackupPC-users mailing list BackupPC-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/backuppc-users http://backuppc.sourceforge.net/