View Issue Details

IDProjectCategoryView StatusLast Update
0000360bareos-corefile daemonpublic2015-03-25 19:19
ReporterAndiH Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformWindowsOSServer 2003 R2OS VersionSP 1
Product Version14.2.1 
Summary0000360: Incremental Backups with fd Version 14 fail to include files
DescriptionUsing winbareos-14.2.1-32-bit-r28.1.exe as FD on Windows 2003 R2 connected to a Bareos 13.2.2 Director on Linux incremental backups fail to include changed files.
It looks like working as expected but the report always show

  Elapsed time: 43 secs
  Priority: 10
  FD Files Written: 1
  SD Files Written: 1
  FD Bytes Written: 0 (0 B)
  SD Bytes Written: 406 (406 B)
  Rate: 0.0 KB/s

despite many changed files and the fact the complete fileset to search is around 4 million files (1.2TiB). Same configuration with bareos-fd 13.2.2 works as expected.
Steps To ReproduceClient with Windows 2003 R2 32bit and many files with fd version 14.2 (beta)
Server with Bareos 13.2.2 (not sure if other version would work)
Client settings as listed below

Incrementals will finish very fast but with no files included and FD will consume a lot of RAM (Version 14 around 850M, Version 13 around 30M)
Additional InformationRelevant configuration used:

JobDefs {
  Name = "SHORT-Def"
  Type = Backup
  Level = Incremental
  Enabled = yes
  Accurate = yes
  Spool Attributes = yes
  Messages = Standard
  Pool = SHORT
  Priority = 10
  Write Bootstrap = "/var/lib/bareos/%c.bsr"
}

# FS01, Laufwerk E: F: und G: werden nicht gesichert
FileSet {
  Name = "FS01-CD"
  Enable VSS = yes
  Include {
    Options {
      signature = MD5
      compression = LZ4
      noatime = yes
      ignore case = yes
      Exclude = yes
    WildDir = "[a-z]:/recycler"
        WildFile = "[a-z]:/pagefile.sys"
    }
    File = "c:/"
    File = "d:/"
  }
  Exclude {
    File = "c:/WINDOWS/$hf_mig$"
    File = "c:/WINDOWS/SoftwareDistribution"
    File = "c:/WINDOWS/ServicePackFiles"
    File = "d:/Release/_cdrom"
  }
}

## FS01 zentraler Dateiserver Windows 2003
Client {
  Name = fs01-fd
  Maximum Concurrent Jobs = 4
  Address = fs01.hq.kwsoft.de
  FDPort = 9102
  Catalog = MyCatalog
  Password = "***"
  AutoPrune = yes # Prune expired Jobs/Files
}

Job {
  Name = "SHORT-FS01-CD"
# Enabled = no
  JobDefs = "SHORT-Def"
  Client = fs01-fd
  FileSet = "FS01-CD"
  Schedule = "SHORTCycle"
}


#
# List Directors who are permitted to contact this File daemon
#
Director {
  Name = bacula-dir
  Password = "***"
}

#
# "Global" File daemon configuration specifications
#
FileDaemon { # this is me
  Name = fs01-fd
  Maximum Concurrent Jobs = 10
  PKI Signatures = no
  PKI Encryption = yes
  PKI Master Key = "c:/Programme/Bareos/master-backup.cert"
  PKI Keypair = "c:/Programme/Bareos/fs01-backup.pem"

  # remove comment in next line to load plugins from specified directory
  # Plugin Directory = @plugindir@
  compatible = no
}

# Send all messages except skipped files back to Director
Messages {
  Name = Standard
  director = bacula-dir = all, !skipped, !restored
}
TagsNo tags attached.

Relationships

related to 0000315 closed Support for NotToBackup Registry Key 

Activities

pstorz

pstorz

2014-11-07 17:05

administrator   ~0001055

Hello Andi,

the problem is indeed caused by the FilesNotToBackup mechanism.
Something seems to be fishy on w2k3 32bit with the DRM entry:

Please verify in your installation by doing the following:

Open RegEdit, and go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro\BackupRestore\FilesNotToBackup.

There is a value DRM with the value "C:\Dokumente und Einstellungen\All Users\DRM\* /s"

Removing this value fixed the problem here in my installation.
You should of course first export that value for backup reasons.

I think this should definitely help, of course we will work on a real fix for that problem.
pstorz

pstorz

2014-11-16 16:39

administrator   ~0001059

It looks like the DRM key indeed is the culprit, see


http://www-01.ibm.com/support/docview.wss?uid=swg21243837

Just editing and storing this value once seems to be enough
mvwieringen

mvwieringen

2014-11-20 23:22

developer   ~0001067

Fix committed to bareos master branch with changesetid 2356.
mvwieringen

mvwieringen

2015-03-25 16:51

developer   ~0001459

Fix committed to bareos2015 bareos-14.2 branch with changesetid 4558.
joergs

joergs

2015-03-25 19:19

developer   ~0001606

Due to the reimport of the Github repository to bugs.bareos.org, the status of some tickets have been changed. These tickets will be closed again.
Sorry for the noise.

Related Changesets

bareos: master ea1deed4

2014-11-16 16:48

pstorz


Committer: mvwieringen

Ported: N/A

Details Diff
Fix problems with autoexlude

- We now do not always create a new options block, only if none exists.

- Because of known wrong-formatted entry in FilesNotToBackup Registry
Key in W2k3/XP SP1 we check for single characters and skip them.

- We print an information output if we skip files because of an empty
options block.

Fixes 0000360: Incremental Backups with fd Version 14 fail to
include files
Affected Issues
0000360
mod - src/findlib/find.c Diff File
mod - src/win32/findlib/win32.c Diff File

bareos2015: bareos-14.2 e869aba4

2014-11-16 17:48

pstorz


Committer: mvwieringen

Ported: N/A

Details Diff
Fix problems with autoexlude

- We now do not always create a new options block, only if none exists.

- Because of known wrong-formatted entry in FilesNotToBackup Registry
Key in W2k3/XP SP1 we check for single characters and skip them.

- We print an information output if we skip files because of an empty
options block.

Fixes 0000360: Incremental Backups with fd Version 14 fail to
include files
Affected Issues
0000360
mod - src/findlib/find.c Diff File
mod - src/win32/findlib/win32.c Diff File

Issue History

Date Modified Username Field Change
2014-11-06 15:08 AndiH New Issue
2014-11-07 09:16 pstorz Assigned To => pstorz
2014-11-07 09:16 pstorz Status new => assigned
2014-11-07 17:05 pstorz Note Added: 0001055
2014-11-16 16:39 pstorz Note Added: 0001059
2014-11-20 23:22 mvwieringen Changeset attached => bareos master ea1deed4
2014-11-20 23:22 mvwieringen Note Added: 0001067
2014-11-20 23:22 mvwieringen Assigned To pstorz => mvwieringen
2014-11-20 23:22 mvwieringen Status assigned => resolved
2014-11-20 23:22 mvwieringen Resolution open => fixed
2014-12-01 12:16 joergs Relationship added related to 0000315
2014-12-01 12:17 joergs Status resolved => closed
2014-12-01 12:17 joergs Assigned To mvwieringen =>
2015-03-25 16:51 mvwieringen Changeset attached => bareos2015 bareos-14.2 e869aba4
2015-03-25 16:51 mvwieringen Note Added: 0001459
2015-03-25 16:51 mvwieringen Status closed => resolved
2015-03-25 19:19 joergs Note Added: 0001606
2015-03-25 19:19 joergs Status resolved => closed