Hi, SSzretter wrote on 2011-09-07 13:33:24 -0700 [[BackupPC-users] excluding files from backup]: > So what is the proper syntax for excluding files backed up via smb from a > windows box (folders too)?
ask smbclient. I was going to recommend reading smbclient(1), but it isn't very explicit on the syntax of its excludes (in contrast to rsync(1)). > I have this currently, and I have tried adding a wildcard '/WINDOWS/*' , > no difference : > > $Conf{BackupFilesExclude} = { > '*' => [ > '/Documents and Settings/*/Local Settings/Temporary Internet Files/', > [...] > ] > }; that would seem to be syntactically correct. In any case, the exclude would apply, since you've got no other exclude for a share, and '*' would match any share without an exclude. > I found this thread which seems to imply my slashes need to go the other > way ?? like '\WINDOWS\' ?? Almost. In general, you should be able to use either '/' or '\\' as path separator, but depending on who handles exclusions and how, it might only work with the native path separator (if it's just a plain string comparison, "/WINDOWS/" obviously won't match "\\WINDOWS\\"; it *shouldn't* be a plain string comparison, but I haven't checked the code, and it might not even be the smbclient side handling the excludes). Note how I tend to quote the backslash character; you'll have to do that, too, in a config file (the web interface may or may not do it for you). > http://www.backupcentral.com/phpBB2/two-way-mirrors-of-external-mailing-lists-3/backuppc-21/backupfilesexclude-via-smb-for-windows-shares-solved-90560/ Sorry, I refuse to follow that reference. > This thread has similar information: > http://www.mail-archive.com/backuppc-users@lists.sourceforge.net/msg08889.html Does it? I read it as a simple issue of spelling error in the configuration. Yes, if you misspell variable names, they won't be interpolated correctly. Earlier, you had written: > In the latest xfer log for this morning, just a SMALL sampling: > > create d 755 0/0 0 System Volume Information > create d 755 0/0 0 temp Ah, yes. That's the lines immediately following the interesting ones. I had thought it was obvious. My mistake. What *smbclient command invocation* does the log file show? What excludes are passed? Even before that, you had written: > After further investigation, I believe my file exclusions are not working in > backuppc. I checked some random machine transfer logs and I see lots of > entries for /WINDOWS/... > In my config.pl this (and other) directories should be exuded. I am using > SMB to do backups (xp machines mostly): > > Do I need anything besides this: ? To which I had, sometime in between, replied: > err, beside the question mark? > > You need to not have set BackupFilesOnly. What does your log file say? Just for those readers who were gnirednow (that's "wondering", but backwards) about the context. Regards, Holger (who will soon need a sanity break from this list) ------------------------------------------------------------------------------ Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ _______________________________________________ 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/