Mark Sopuch wrote: > 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 >
Make of it what you will but the change from c to c$ in the filter combined with the smbclient commands I supplied earlier ran as follows (first the full then the incrmental) : Running: /usr/bin/smbclient \\\\gromit\\C\$ -U AL\\marks! -E -N -d 1 -c tarmode\ full -Tc - /nucoda full backup started for share C$ Xfer PIDs are now 7471,7470 Domain=[AL] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager] tarmode is now full, system, hidden, noreset, verbose create d 755 0/0 0 nucoda create d 755 0/0 0 nucoda/cms_lut create 644 0/0 110844 nucoda/cms_lut/dp100_3d_ALFHFilm_20061212.cms create 644 0/0 116582 nucoda/cms_lut/dp100_3d_FHFilm_MolonFC_20061212.cms create d 755 0/0 0 nucoda/desktop_icons create 644 0/0 2238 nucoda/desktop_icons/dc-icon.ico create 644 0/0 6912056 nucoda/desktop_icons/DigitalVision_Desktop.bmp create 644 0/0 84798 nucoda/desktop_icons/DigitalVision_Desktop.jpg create 644 0/0 2238 nucoda/desktop_icons/fc-icon.ico Running: /usr/bin/smbclient \\\\gromit\\C\$ -U AL\\backuppc -E -N -d 1 -c tarmode\ full -TcN /tomato1/BackupPC/DATA/pc/gromit/timeStamp.level0 - incr backup started back to 2007-05-14 17:50:06 (backup #0) for share C$ Xfer PIDs are now 29089,29088 Getting files newer than Mon May 14 17:50:06 2007 Domain=[AL] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager] tarmode is now full, system, hidden, noreset, verbose create 644 0/0 891 AClient.cfg create d 755 0/0 0 apps create d 755 0/0 0 apps/DATEINTRAY create d 755 0/0 0 apps/sysinternals create d 755 0/0 0 apps/sysinternals/ProcExp create d 755 0/0 0 apps/sysinternals/pstools create d 755 0/0 0 CENTENN.IAL create d 755 0/0 0 CENTENN.IAL/AUDIT create 644 0/0 65536 CENTENN.IAL/AUDIT/bios.aud create 644 0/0 169812 CENTENN.IAL/AUDIT/client1.log create 644 0/0 524299 CENTENN.IAL/AUDIT/client2.log create 644 0/0 106 CENTENN.IAL/AUDIT/device.aud create 644 0/0 2531 CENTENN.IAL/AUDIT/dmi.aud create 644 0/0 11660 CENTENN.IAL/AUDIT/hw.aud create 644 0/0 50020 CENTENN.IAL/AUDIT/lanprobe1.log create 644 0/0 82 CENTENN.IAL/AUDIT/local.dat As I said, I have not tuned the smbclient commands away from the defaults that were installed. I assumed it is not necessary and they are ready for use with filters out of the box. You can see above what the commands interpolate to run as. Thanks for any help on this in advance. 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/