]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: in compare_backup_content ignore strange files in Microsoft/Search
authorAlain Spineux <alain@baculasystems.com>
Wed, 8 Feb 2023 10:30:36 +0000 (11:30 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:57:01 +0000 (13:57 +0200)
- Files in C:/ProgramData/Microsoft/Search/Data/Applications/Windows
  don't show up in snapshot, they look like Reparse point
  only the windows explorers show that the file is a reparse point
  command line tools don't
  as estimate don't use VSS, this make a diff between both
- reset "nb" to zero to always show the 10 first files that are in
  the backup but not in estimate

regress/scripts/functions.pm

index 4a02a5fc47e25e2240909b5905c032483a30282c..4085a2de7508668b6032bfc1579bae4d40f23ad5 100644 (file)
@@ -2259,11 +2259,18 @@ sub compare_backup_content
         if (exists $content{$f}) {
             $content{$f} = 0;
         } else {
-            print "ERROR: [$f] not found in job log\n";
-            $estat=1;
-            $nb++;
+            if ($f =~ m=C:/ProgramData/Microsoft/Search/Data/Applications/Windows=i) {
+                # the files in thes directories looks to be reparse point and
+                # don't show up in snapshot
+                print "WARNING: [$f] not found in job log but ignored\n";
+            } else {
+                print "ERROR: [$f] not found in job log\n";
+                $estat=1;
+                $nb++;
+            }
         }
     }
+    $nb=0;
     foreach my $f (keys %content) {
         next if ($f =~ /pagefile.sys/); # Skip swap file, not always in estimate...
         last if ($nb > 10);