View Issue Details

IDProjectCategoryView StatusLast Update
0000755bareos-coredirectorpublic2017-01-20 11:57
Reporterhostedpower Assigned Tomaik  
PrioritynormalSeveritymajorReproducibilityhave not tried
Status closedResolutionno change required 
PlatformLinuxOSDebianOS Version8
Product Version16.2.4 
Summary0000755: Always Incremental "Always Incremental Max Full Age" not working properly
DescriptionHi,


I'm using the always incremental scheme. But it looks like the "Always Incremental Max Full Age" is not working correctly.

I see that the full seems to be consolidated every 2 days instead of every 6/12 days.

This leads to huge space usage which is not affordable :|

Also it seems that the older backups are not purged automatically




Steps To ReproduceUse following config:

Job {
    Name = "Consolidate"
    Type = "Consolidate"
    Accurate = "yes"
    JobDefs = "DefaultJob"

    Schedule = "ConsolidateCycle"
    Max Full Consolidations = 3
}

JobDefs {
    Name = "HPJobInc"
    Type = Backup
    Level = Full
    Write Bootstrap = "/var/lib/bareos/%c.bsr"
    Accurate=yes
    Level=Full
    Messages = Standard
    Always Incremental = yes
    Always Incremental Job Retention = 20 days
    Always Incremental Max Full Age = 12 days # should always be less then Always Incremental Job Retention > Every 12 days the full backup is also consolidated
    Always Incremental Keep Number = 5 # Guarantee that at least the specified number of Backup Jobs will persist, even if they are older than "Always Incremental Job Retention".
    Maximum Concurrent Jobs = 5 # Let up to 5 jobs run
}



Storage {
    Name = vps53320-incr
    Device = vps53320-incr # bareos-sd Device
    Media Type = vps53320
    Address = backups.hosted-power.com # backup server fqdn > sent to client sd
    Password = "xxxx" # password for Storage daemon
    Maximum Concurrent Jobs = 1 # required for virtual full
    # @/etc/bareos/storage-defaults.conf
}

Storage {
    Name = vps53320-cons
    Device = vps53320-cons # bareos-sd Device
    Media Type = vps53320
    Address = backups.hosted-power.com # backup server fqdn > sent to client sd
    Password = "xxxx" # password for Storage daemon
    Maximum Concurrent Jobs = 1 # required for virtual full
    # @/etc/bareos/storage-defaults.conf
}


Pool {
    Name = vps53320-incr
    Pool Type = Backup
    Storage = vps53320-incr
    LabelFormat = "vol-incr-"
    Maximum Volume Jobs = 1 # a new file for each backup that is done
    Recycle = yes # Bareos can automatically recycle Volumes
    Auto Prune = no # Don’t prune jobs from the volume. Let this be done by Consolidate.
    Next Pool = vps53320-cons
    Volume Use Duration = 23h
}

Pool {
    Name = vps53320-cons
    Pool Type = Backup
    Storage = vps53320-cons
    LabelFormat = "vol-cons-"
    Maximum Volume Jobs = 1 # a new file for each backup that is done
    Recycle = yes # Bareos can automatically recycle Volumes
    Auto Prune = no # Don’t prune jobs from the volume. Let this be done by Consolidate.
    Volume Use Duration = 23h
}


Job {
    Type = Backup
    Name = "backup-vps53320"
    Client = vps53320
    Pool = vps53320-incr
    Full Backup Pool = vps53320-cons
    FileSet = "windows-all"
    Schedule = "always-inc-cycle-1"
    #Defaults
    JobDefs = "HPJobInc"
}





This is what is produces for one of the clients with this scheme:


root@backup02:/home/vps53320/bareos# ls -alht
total 63G
-rw-r----- 1 bareos bareos 9.8G Jan 3 09:01 vol-cons-0793
drwxrwxr-x 2 bareos bareos 4.0K Jan 3 09:00 .
-rw-r----- 1 bareos bareos 53M Jan 2 22:17 vol-incr-0773
-rw-r----- 1 bareos bareos 68M Jan 1 22:17 vol-incr-0733
-rw-r----- 1 bareos bareos 9.8G Jan 1 09:02 vol-cons-0717 --> Consolidated again everything, why??
-rw-r----- 1 bareos bareos 73M Dec 31 22:17 vol-incr-0698
-rw-r----- 1 bareos bareos 52M Dec 30 22:17 vol-incr-0662
-rw-r----- 1 bareos bareos 9.8G Dec 30 09:02 vol-cons-0646 --> Consolidated again everything, why??
-rw-r----- 1 bareos bareos 52M Dec 29 22:17 vol-incr-0628
-rw-r----- 1 bareos bareos 82M Dec 28 22:17 vol-incr-0602
-rw-r----- 1 bareos bareos 9.8G Dec 28 09:02 vol-cons-0595 --> Consolidated again everything, why??
-rw-r----- 1 bareos bareos 73M Dec 27 22:19 vol-incr-0575
-rw-r----- 1 bareos bareos 53M Dec 26 22:19 vol-incr-0550
-rw-r----- 1 bareos bareos 9.8G Dec 26 09:02 vol-cons-0540 --> Consolidated everything, including the full, seems normal
-rw-r----- 1 bareos bareos 60M Dec 25 22:17 vol-incr-0522
-rw-r----- 1 bareos bareos 54M Dec 24 22:17 vol-incr-0500
-rw-r----- 1 bareos bareos 59M Dec 23 22:17 vol-incr-0480
-rw-r----- 1 bareos bareos 80M Dec 22 22:17 vol-incr-0459
-rw-r----- 1 bareos bareos 493M Dec 21 22:18 vol-incr-0438
-rw-r----- 1 bareos bareos 456M Dec 20 22:19 vol-incr-0418
-rw-r----- 1 bareos bareos 61M Dec 19 22:17 vol-incr-0399
-rw-r----- 1 bareos bareos 57M Dec 18 22:17 vol-incr-0378
-rw-r----- 1 bareos bareos 1.1G Dec 17 22:20 vol-incr-0359
-rw-r----- 1 bareos bareos 61M Dec 16 22:17 vol-incr-0337
-rw-r----- 1 bareos bareos 76M Dec 15 22:17 vol-incr-0319
-rw-r----- 1 bareos bareos 836M Dec 14 22:19 vol-incr-0299
-rw-r----- 1 bareos bareos 77M Dec 13 22:17 vol-incr-0277
-rw-r----- 1 bareos bareos 68M Dec 12 22:17 vol-incr-0256
-rw-r----- 1 bareos bareos 48M Dec 11 22:17 vol-incr-0237
-rw-r----- 1 bareos bareos 39M Dec 10 22:20 vol-incr-0217
-rw-r----- 1 bareos bareos 58M Dec 9 22:18 vol-incr-0197
-rw-r----- 1 bareos bareos 60M Dec 8 22:17 vol-incr-0176
-rw-r----- 1 bareos bareos 58M Dec 7 22:17 vol-incr-0157
-rw-r----- 1 bareos bareos 71M Dec 6 22:17 vol-incr-0136
-rw-r----- 1 bareos bareos 56M Dec 5 22:17 vol-incr-0118
-rw-r----- 1 bareos bareos 60M Dec 4 22:17 vol-incr-0061
-rw-r----- 1 bareos bareos 9.8G Dec 3 22:33 vol-cons-0004 --> Full backup
drwxr-xr-x 5 vps53320 vps53320 4.0K Oct 10 13:24 ..
root@backup02:/home/vps53320/bareos#
Tagsalways incremental, director, support

Relationships

related to 0000745 closedmaik Always incremental consolidate fails when no files are changed 

Activities

maik

maik

2017-01-20 11:16

administrator   ~0002513

See

http://doc.bareos.org/master/html/bareos-manual-main-reference.html#AlwaysIncrementalMaxFullAge


"Always Incremental Max Full Age Dir Job should never be less or equal of Always Incremental Job Retention Dir Job."

Issue History

Date Modified Username Field Change
2017-01-03 11:32 hostedpower New Issue
2017-01-20 11:16 maik Note Added: 0002513
2017-01-20 11:16 maik Status new => resolved
2017-01-20 11:16 maik Resolution open => no change required
2017-01-20 11:16 maik Assigned To => maik
2017-01-20 11:19 maik Status resolved => closed
2017-01-20 11:50 maik Relationship added related to 0000745
2017-01-20 11:57 maik Tag Attached: always incremental
2017-01-20 11:57 maik Tag Attached: director
2017-01-20 11:57 maik Tag Attached: support