From: Alain Spineux Date: Wed, 8 Feb 2023 10:30:36 +0000 (+0100) Subject: regress: in compare_backup_content ignore strange files in Microsoft/Search X-Git-Tag: Beta-15.0.0~253 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74357a8d88ae21846fcfa9c53d3bdcb827aa0f0a;p=thirdparty%2Fbacula.git regress: in compare_backup_content ignore strange files in Microsoft/Search - 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 --- diff --git a/regress/scripts/functions.pm b/regress/scripts/functions.pm index 4a02a5fc4..4085a2de7 100644 --- a/regress/scripts/functions.pm +++ b/regress/scripts/functions.pm @@ -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);