Retention on disk

55 views
Skip to first unread message

Yariv Hazan

unread,
Dec 7, 2023, 9:08:48 AM12/7/23
to bareos-users

Last try to configure retention on disk 😊

Using version default 22.1.1 installation.

I would like to have 12 rotating backups per hour.

So, 12 volumes should be created and then rotated so I will not run out of disk space.

Went over documentation a few times but does not seem to work.

Only one volume is created, and backups are written to volume indefinitely.

Thanks in advance for any help you can provide🙏.

Please see configuration below:

 

Job {

  Name = "_testBackup_D_job"

  JobDefs = "H_D_JobDefs"

  FileSet = "_testBackup_fileset"

  Schedule = "D_H_cycle"

}

 

Schedule {

  Name = "D_H_cycle"

  Run = Level=Full Pool=Every10MinPool FullPool=Every10MinPool hourly at 0:00

  Run = Level=Full Pool=Every10MinPool FullPool=Every10MinPool hourly at 0:05

  Run = Level=Full Pool=Every10MinPool FullPool=Every10MinPool hourly at 0:10

  Run = Level=Full Pool=Every10MinPool FullPool=Every10MinPool hourly at 0:15

  Run = Level=Full Pool=Every10MinPool FullPool=Every10MinPool hourly at 0:20

  Run = Level=Full Pool=Every10MinPool FullPool=Every10MinPool hourly at 0:25

  Run = Level=Full Pool=Every10MinPool FullPool=Every10MinPool hourly at 0:30

  Run = Level=Full Pool=Every10MinPool FullPool=Every10MinPool hourly at 0:35

  Run = Level=Full Pool=Every10MinPool FullPool=Every10MinPool hourly at 0:40

  Run = Level=Full Pool=Every10MinPool FullPool=Every10MinPool hourly at 0:45

  Run = Level=Full Pool=Every10MinPool FullPool=Every10MinPool hourly at 0:50

  Run = Level=Full Pool=Every10MinPool FullPool=Every10MinPool hourly at 0:55

}

 

Pool {

  Name = Every10MinPool

  Pool Type = Backup

  AutoPrune = yes

  Volume Use Duration = 5m

  Label Format = "5Min-"

  Maximum Volumes = 12

#  Use Volume Once = yes

  VolumeRetention = 1h

  Recycle = yes

  Maximum Volume Jobs = 1

  Action On Purge = Truncate

  Maximum Volume Bytes = 3G

}

Andreas Rogge

unread,
Dec 11, 2023, 4:08:09 AM12/11/23
to bareos...@googlegroups.com
Am 07.12.23 um 15:08 schrieb Yariv Hazan:
> Last try to configure retention on disk 😊
Probably not :)
>
[...]
> Please see configuration below:
>
> Pool {
>   Name = Every10MinPool
>   Pool Type = Backup
>   AutoPrune = yes
>   Volume Use Duration = 5m
>   Label Format = "5Min-"
>   Maximum Volumes = 12
> #  Use Volume Once = yes
>   VolumeRetention = 1h
>   Recycle = yes
>   Maximum Volume Jobs = 1
>   Action On Purge = Truncate
>   Maximum Volume Bytes = 3G
> }
That looks not to bad.
Did you reapply the pool configuration to the volumes after you last
changed the pool configuration?
i.e. after "reload" in the director you need to run "update" and you
probably want "update all volumes from all pools" to re-apply the
parameters.

Best Regards,
Andreas
--
Andreas Rogge andrea...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221-630693-86
http://www.bareos.com

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: Stephan Dühr, Jörg Steffens, Philipp Storz
OpenPGP_0x00314758866BD59E.asc
OpenPGP_signature.asc

Yariv Hazan

unread,
Dec 11, 2023, 6:42:29 AM12/11/23
to bareos-users
Thank you Andreas that was a big step forward, as the jobs ran,  11 volumes were created.
But now I get: 

11-Dec 13:35 bareos-sd JobId 1044: Job _testBackup_D_job.2023-12-11_13.35.00_52 is waiting. Cannot find any appendable volumes.

Please use the "label" command to create a new Volume for:

    Storage:      "FileStorage" (/var/lib/bareos/storage)

    Pool:         Every10MinPool

    Media type:   File

What am I doing wrong that volumes are not reused?

Thanks,

Yariv

Yariv Hazan

unread,
Dec 11, 2023, 8:03:43 AM12/11/23
to bareos-users
I think I spoke too soon, it just take time and a few error emails but eventually it reuses the old Volumes, will keep monitoring and let you know thanks.
Reply all
Reply to author
Forward
0 new messages