In the end, here's what I found: wildcards do work, but spaces in
pathnames do not. Replace spaces with question marks, and all is
well. Use spaces, and it ignores the exclusions that contain them.
This is what works for me:
$Conf{BackupFilesExclude} = ['/hiberfil.sys', '/pagefile.sys', '/WUTemp', '/RECYCLER',
'/Documents?and?Settings/*/Local?Settings/Application?Data/Microsoft/Windows/UsrClass.dat',
'/Documents?and?Settings/*/Local?Settings/Application?Data/Microsoft/Windows/UsrClass.dat.LOG',
'/Documents?and?Settings/*/NTUSER.DAT', '/Documents?and?Settings/*/ntuser.dat.LOG',
'/Documents?and?Settings/*/Local?Settings/Application?Data/Mozilla/Firefox/Profiles/*/parent.lock',
'/Documents?and?Settings/*/Local?Settings/Application?Data/Thunderbird/Profiles/*/parent.lock',
'/WINDOWS/system32/config/SAM', '/WINDOWS/system32/config/SAM.LOG',
'/WINDOWS/system32/config/SECURITY', '/WINDOWS/system32/config/SECURITY.LOG',
'/WINDOWS/system32/config/default', '/WINDOWS/system32/config/default.LOG',
'/WINDOWS/system32/config/software', '/WINDOWS/system32/config/software.LOG',
'/WINDOWS/system32/config/system', '/WINDOWS/system32/config/system.LOG',
'/WINDOWS/system32/CatRoot2/edb.log', '/WINDOWS/system32/CatRoot2/tmp.edb',
'/WINDOWS/system32/CatRoot2/edbtmp.log',
'/WINDOWS/SoftwareDistribution/*',
'/WINDOWS/PCHEALTH/HELPCTR/DataColl/CollectedData*',
'*/Temporary?Internet?Files/*', '*/Temp/*', '*.tmp', '*.bak'];
Les Stott wrote:
Les Stott wrote:
Paul S. Gumerman wrote:
Jonathan,
Here's what works for me:
$Conf{BackupFilesExclude} = ['/hiberfil.sys', '/pagefile.sys',
'/WUTemp', '/RECYCLER',
'UsrClass.dat', 'UsrClass.dat.LOG', 'NTUSER.DAT',
'ntuser.dat.LOG', 'parent.lock',
'/WINDOWS/system32/config/SAM',
'/WINDOWS/system32/config/SAM.LOG',
'/WINDOWS/system32/config/SECURITY',
'/WINDOWS/system32/config/SECURITY.LOG',
'/WINDOWS/system32/config/default',
'/WINDOWS/system32/config/default.LOG',
'/WINDOWS/system32/config/software',
'/WINDOWS/system32/config/software.LOG',
'/WINDOWS/system32/config/system',
'/WINDOWS/system32/config/system.LOG',
'/WINDOWS/system32/CatRoot2/edb.log',
'/WINDOWS/system32/CatRoot2/tmp.edb',
'/WINDOWS/system32/CatRoot2/edbtmp.log',
'/WINDOWS/SoftwareDistribution/EventCache/*',
'*/Temporary Internet Files/*', '*/Temp/*', '*.tmp', '*.bak'];
>From what I have observed, no wildcard characters work, so I don't
believe anything with a "*" is doing anything useful. I reject the
idea of not backing up anything in Local Settings --- much of that
stuff is EXACTLY what one NEEDS to back up.
Yes,
the
exclusions on the second line *could* be problematic in some
circumstances, as they don't limit the exclusions to the Local Settings
folders, but I simply could not get wildcards working, so it was the
best solution for me.
If anyone can help with the wildcards, I can make this exclusion list
work better.
FYI...i did some further testing and found the following works for me,
i.e. no Xferlog errors about files in use or permission denied...it
catches everything in Documents and Settings.
$Conf{RsyncShareName} = ['cdrive'];
$Conf{BackupFilesExclude} = ['*Outlook.pst', '*outlook.pst', '*/Local Settings/*',
'/Documents and Settings/*/UsrClass.dat', '/Documents and Settings/*/UsrClass.dat.LOG',
'/Documents and Settings/*/NTUSER.DAT*', '/Documents and Settings/*/ntuser.dat.LOG', '*parent.lock'];
Hope that gives you some hints.
Regards,
Les
|