Bareos Bug Tracker
Bareos Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000907bareos-core[All Projects] file daemonpublic2018-02-09 10:592018-02-12 16:40
Reportermbr 
Assigned To 
PrioritynormalSeveritymajorReproducibilityhave not tried
StatusfeedbackResolutionopen 
PlatformLinuxOSWindowsOS Version2016
Product Version17.2.4 
Target VersionFixed in Version 
Summary0000907: Incremental Job backups same files
DescriptionDirector is running on CentOS 7, FD on Windows Server 2016.
Jobtype: always incremental;
Bug: Some files (~ 180) were copied on every job.

Example:

Jobs:
 22401 Incr 2,187 105.1 G OK 04-Feb-18 01:24 FS01-AI
 22421 Incr 1,143 103.8 G OK 05-Feb-18 08:35 FS01-AI
 22495 Incr 2,515 105.3 G OK 09-Feb-18 07:13 FS01-AI


In the database you can see that the files have not changed between backups:

bareos=# select * from file where pathid='5305263' and name='foo.bar' and jobid=22495;
  fileid | fileindex | jobid | pathid | deltaseq | markid | fhinfo | fhnode | lstat | md5 | name
-----------+-----------+-------+---------+----------+--------+--------+--------+----------------------------------------------------------+------------------------+--------------------
 252600154 | 2292 | 22495 | 5305263 | 0 | 0 | 0 | 0 | A A IH/ A A A BAAAYg ePLa A A BOh02e BN3PJg BZFeCr A A f | VsVr09AEXA85Ywpk6aW+8w | foo.bar
 252163936 | 1010 | 22421 | 5305263 | 0 | 0 | 0 | 0 | A A IH/ A A A BAAAYg ePLa A A BOh02e BN3PJg BZFeCr A A f | VsVr09AEXA85Ywpk6aW+8w | foo.bar
 252090699 | 1934 | 22401 | 5305263 | 0 | 0 | 0 | 0 | A A IH/ A A A BAAAYg ePLa A A BOh02e BN3PJg BZFeCr A A f | VsVr09AEXA85Ywpk6aW+8w | foo.bar
TagsNo tags attached.
bareos-master: impactyes
bareos-master: action
bareos-17.2: impactyes
bareos-17.2: action
bareos-16.2: impact
bareos-16.2: action
bareos-15.2: impact
bareos-15.2: action
bareos-14.2: impact
bareos-14.2: action
bareos-13.2: impact
bareos-13.2: action
bareos-12.4: impact
bareos-12.4: action
Attached Files

- Relationships

-  Notes
(0002903)
joergs (administrator)
2018-02-09 19:58

Anything special you know about the affected files?

Some filesystems behave oddly, react on access time ...

You can configure, what attributes are evaluated on accurate mode by the fileset include option "accurate", see http://doc.bareos.org/master/html/bareos-manual-main-reference.html#FileSetIncludeRessource [^]

If you are only interested in the file contents, setting

accurate = 5

might be an option.
(0002906)
mbr (reporter)
2018-02-12 14:38

Joerg, thanks for your reply.
Affected files were pst(s), media files and binaries but no M$ office files (which are the most on this server / fileset). The File system is a ntfs on a Server 2016.

I understand that it is a possible workaround to reduce the attribut set which decides about if a file has changed or not. I will give it a try.

Please correct me if I am wrong but from my understanding of bareos the decision of backingup a file or not is done by the catalog entries. The entries in the catalog (see my database dump in the bug report) for the files which were all the time backed up were the same so there must be a bug in the decision process.
(0002907)
joergs (administrator)
2018-02-12 16:39


It depends.
Normal backup is based only on timestamps (backup all files that have been modified after the last backup).
As you are using Always Incremental, I assume you are using accurate backup, where the backup decision is really based on the catalog data.

My proposal can be seen as workaround, but it has been intended as a way to track down the problem. If it works with some settings, we can determine which attributes are treated wrong.

Anyhow, there are also other possible reason:
maybe there have been job runs in between, where the data have not been present (volume not mounted, ...). In this case the in between job has find out that foo.bar has not been available in between. As it had been available afterwards, it has been backuped again.

- Issue History
Date Modified Username Field Change
2018-02-09 10:59 mbr New Issue
2018-02-09 19:58 joergs Note Added: 0002903
2018-02-09 19:58 joergs Status new => feedback
2018-02-12 14:38 mbr Note Added: 0002906
2018-02-12 14:38 mbr Status feedback => new
2018-02-12 16:39 joergs Note Added: 0002907
2018-02-12 16:39 joergs Status new => feedback
2018-02-12 16:40 joergs bareos-master: impact => yes
2018-02-12 16:40 joergs bareos-17.2: impact => yes
2018-02-12 16:40 joergs Category director => file daemon
2018-02-12 16:40 joergs OS CentOS => Windows
2018-02-12 16:40 joergs OS Version 7 => 2016


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker