Media expiration info missing in UI

24 views
Skip to first unread message

Oleg Volkov

unread,
Aug 1, 2023, 3:16:44 AM8/1/23
to bareos-users
In previous versions, there was a column named "Retention/Expiration" , in current version, it is only Retention info.

How to get an Expiration info about volumes ?

Andreas Rogge

unread,
Aug 3, 2023, 8:17:55 AM8/3/23
to bareos...@googlegroups.com
Am 01.08.23 um 09:16 schrieb Oleg Volkov:
> How to get an Expiration info about volumes ?

Short answer: there's no easy way to get that information.

Long answer: That is a good question and actually the point why we
removed that column.
A volume expires if all jobs on it have expired. This is the case if all
jobs on the volume have been pruned/purged/deleted (either manually or
by some retention).
Now the interesting part is how volume retention works: a job will
expire if "end date + volume retention > now". For copied or migrated
jobs this can be a lot earlier than "last written + volume retention"
(which is what the WebUI used to display).
This means that without looking at the jobs stored on a volume, you
cannot reliably determine when it will expire. We removed the column to
not display bogus information anymore.

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

Oleg Volkov

unread,
Aug 3, 2023, 2:15:25 PM8/3/23
to Andreas Rogge, bareos-users
Bareos director decides to reuse the media by some reason, I guessing that by expiration status.
If director knows about this status, why can't I see this info ?

Andreas Rogge

unread,
Aug 4, 2023, 4:21:33 AM8/4/23
to Oleg Volkov, bareos-users
Am 03.08.23 um 20:15 schrieb Oleg Volkov:
> Bareos director decides to reuse the media by some reason, I guessing
> that by expiration status.
> If director knows about this status, why can't I see this info ?
It doesn't "know" that status. It calculates it on a case-by-case basis
during auto-recycling.
You're right, that information should be visible somehow. However,
currently it is not exposed via any api.
OpenPGP_0x00314758866BD59E.asc
OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages