Dear folks,

sorry that I bring this issue up again.

I still have to prune the tapes manually. Well, this is true for the 
MON/TUE/WED/THU tapes but not for the FRE tapes. In fact I use two FRE tapes 
for even weeks (FRE-E-1, FRE-E-2) and two FRE tapes for odd weeks (FRE-O-1, 
FRE-O-2). Each FRE tape is used every forth even/odd week, whereas the 
MON/TUE/WED/THU tapes are used every second even/odd week. One more difference: 
The FRE tapes do not need to be pruned manually - they get pruned 
automatically. But why?

I already tried to lower "Volume Retention" to 4 days and relabeled all tapes, 
but this did not help.

Regards
Carsten



On 03.03.2016 at 11:22 I wrote:


> Hi all,

> I have problems in understanding how automatic recycling of tapes works.

> My configuration uses a single tape drive and ten tapes. Five tapes
> are used for every work day of an even week (labeled MON-E, TUE-E...
> FRI-E), the other five for odd weeks (MON-O, TUE-O... FRI-O).
> There are two pools, one for even weeks and one for odd weeks, both
> configures with "Volume Retention = 8 days" and "Volume Use Duration = 23h".

> Backups works fine. However, if after two weeks the tapes are to be
> reused, I need to prune each tape manually - otherwise Bareos asks
> to mount a volume or label a new one.

> Parts of my bareos-dir.conf:

> #########################

> Director {
>  Name = dasi-dir
>  QueryFile = "/usr/lib/bareos/scripts/query.sql"
>  Maximum Concurrent Jobs = 5
>  Password = "director-password"
>  Messages = Daemon
> }


> # JobDefs

> JobDefs {
>  Name = "DefaultJob"
>  Type = Backup
>  Level = Incremental
>  Client = dasi-fd
>  FileSet = "Full Set"
>  Schedule = "Even-Uneven-Schedule"
>  Storage = LTO-3
>  Messages = Standard
>  Pool = Default
>  Priority = 10
>  Write Bootstrap = "/var/lib/bareos/%c.bsr"
> }

> JobDefs {
>  Name = "Backup Windows Server"
>  Type = Backup
>  Level = Full
>  Storage = LTO-3
>  SpoolData = yes
>  Messages = Standard
>  Pool = Default
>  Priority = 10
>  Write Bootstrap = "/var/lib/bareos/%c.bsr"
>  Maximum Concurrent Jobs = 5
> }


> # Jobs

> # Backup the catalog database (after the nightly save)
> Job {
>  Name = "BackupCatalog"
>  JobDefs = "DefaultJob"
>  Level = Full
>  FileSet = "Catalog"
>  Schedule = "Even-Uneven-Schedule"
>  RunBeforeJob = "/usr/lib/bareos/scripts/make_catalog_backup bareos"
>  RunAfterJob = "/etc/bareos/end_of_backup.sh"
>  Write Bootstrap = "/var/lib/bareos/BackupCatalog.bsr"
>  Priority = 50
> }

> # Backup the DATA-SERVER.
> Job {
>  Name = "SRV-DATA"
>  JobDefs = "Backup Windows Server"
>  Client = SRV-DATA-fd
>  FileSet = "SRV-DATA-FileSet"
>  Pool = Default
>  Schedule = "Even-Uneven-Schedule"
> }


> # FileSets

> # Files to backup SRV-DATA.
> FileSet {
>  Name = "SRV-DATA-FileSet"
>  Enable VSS = yes
>  Include {
>    Options {
>      Signature = SHA1
>      IgnoreCase = yes
>    }
>    File = "D:/Personal"
>    Exclude Dir Containing = .nobackup
>  }
> }


> # Backup catalog.
> FileSet {
>  Name = "Catalog"
>  Include {
>    Options {
>      signature = SHA1
>    }
>    File = "/var/lib/bareos/bareos.sql"
>    File = "/etc/bareos"
>  }
> }


> # List of files to be backed up
> FileSet {
>  Name = "Full Set"
>  Include {
>    Options {
>      signature = MD5
>    }
>    File = /usr/sbin
>  }

>  Exclude {
>    File = /var/lib/bareos
>    File = /var/lib/bareos/storage
>    File = /proc
>    File = /tmp
>    File = /.journal
>    File = /.fsck
>  }
> }


> # Schedules

> Schedule {
>  Name = "WeeklyCycle"
>  Run = Full 1st sun at 23:05
>  Run = Differential 2nd-5th sun at 23:05
>  Run = Incremental mon-sat at 23:05
> }

> # This schedule does the catalog. It starts after the WeeklyCycle
> Schedule {
>  Name = "WeeklyCycleAfterBackup"
>  Run = Full sun-sat at 23:10
> }

> Schedule {
>  Name = "Even-Uneven-Schedule"
>  Run = Level=Full Pool="EvenWeek"   sat
> w02,w04,w06,w08,w10,w12,w14,w16,w18,w20,w22,w24,w26,w28,w30,w32,w34,w36,w38,w40,w42,w44,w46,w48,w50,w52
>  at 19:30
>  Run = Level=Full Pool="UnEvenWeek" sat
> w03,w05,w07,w09,w11,w13,w15,w17,w19,w21,w23,w25,w27,w29,w31,w33,w35,w37,w39,w41,w43,w45,w47,w49,w51,w53
>  at 19:30
>  Run = Level=Incremental Pool="EvenWeek"   mon-thu
> w02,w04,w06,w08,w10,w12,w14,w16,w18,w20,w22,w24,w26,w28,w30,w32,w34,w36,w38,w40,w42,w44,w46,w48,w50
>  at 19:30
>  Run = Level=Incremental Pool="UnEvenWeek" mon-thu
> w03,w05,w07,w09,w11,w13,w15,w17,w19,w21,w23,w25,w27,w29,w31,w33,w35,w37,w39,w41,w43,w45,w47,w49,w51
>  at 19:30
> }


> # Clients

> # Client (File Services) to backup
> Client {
>  Name = dasi-fd
>  Address = dasi.our.lan
>  Password = "filedaemon-password"    # password for FileDaemon
>  File Retention = 30 days
>  Job Retention = 2 months
>  AutoPrune = yes
> }

> Client {
>  Name = SRV-DATA-fd
>  Address = SRV-DATA.our.lan
>  FDPort = 9102
>  Password = "SRV-DATA-FileDaemon-XXX"
>  File Retention = 30 days
>  Job Retention = 30 days
>  AutoPrune = yes
> }


> # Storage

> # - LTO-3 (Tape)
> Storage {
>  Name = LTO-3
>  Address = dasi.our.lan
>  SDPort = 9103
>  Password = "storagedaemon-password"
>  Device = LTO-3
>  Media Type = LTO-3
>  Maximum Concurrent Jobs = 5
> }


> # Catalog

> # Generic catalog service
> Catalog {
>  Name = MyCatalog
>  dbdriver = "postgresql"
>  dbname = "bareos"
>  dbuser = "bareos"
>  dbpassword = ""
> }


> # Pools

> # Default pool definition
> Pool {
>  Name = Default
>  Pool Type = Backup
>  Recycle = yes
>  AutoPrune = yes
>  Volume Retention = 12 days
> }

> # Pool for even week numbers.
> Pool {
>  Name = EvenWeek
>  Pool Type = Backup
>  Recycle = yes
>  AutoPrune = yes
>  Volume Retention = 8 days
>  Volume Use Duration = 23h
> }

> # Pool for uneven week numbers.
> Pool {
>  Name = UnEvenWeek
>  Pool Type = Backup
>  Recycle = yes
>  AutoPrune = yes
>  Volume Retention = 8 days
>  Volume Use Duration = 23h
> }

> # Scratch pool definition
> Pool {
>  Name = Scratch
>  Pool Type = Backup
> }

> #########################

> Is there something missing or wrong?

> Regards
> Carsten

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to