Deprecated keyword FileRetention

96 views
Skip to first unread message

Cliff Odijk

unread,
Jan 12, 2024, 8:06:17 AM1/12/24
to bareos-users
Hi,

I just upgraded our BareOS setup from version 21 to version 23 and just noticed a few deprecation messages inside our config. From the changelog i found  this PR https://github.com/bareos/bareos/pull/1425. But my question is do we still need these values or can we remove them? And if we remove them what would happen to the catalog? Are old records still pruned? 

 * using deprecated keyword FileRetention on line 6 of file /etc/bareos/bareos-dir.d/client/server.conf
 * using deprecated keyword JobRetention on line 7 of file /etc/bareos/bareos-dir.d/client/server.conf
 * using deprecated keyword AutoPrune on line 8 of file /etc/bareos/bareos-dir.d/client/server.conf

Philipp Storz

unread,
Jan 12, 2024, 8:20:20 AM1/12/24
to bareos...@googlegroups.com
Hello Cliff,

Am 12.01.24 um 14:06 schrieb 'Cliff Odijk' via bareos-users:
> Hi,
>
> I just upgraded our BareOS setup from version 21 to version 23 and just noticed a few deprecation
> messages inside our config. From the changelog i found  this PR
> https://github.com/bareos/bareos/pull/1425 <https://github.com/bareos/bareos/pull/1425>. But my
> question is do we still need these values or can we remove them? And if we remove them what would
> happen to the catalog? Are old records still pruned?Yes, they are pruned when the job that they belong to is pruned from the database, usually when the
medium that holds the job is recycled.

The deprecated directives only were used by the "Autoprune" mechanism in the client where the job
and file entries in the database could be removed BEFORE the medium that they are stored on is recycled.

As we at Bareos think that it does not make sense to lose information about jobs that you still have
on your media, the AutoPrune setting in the client was "no" per default.

The default setup in bareos prunes the file and job information from the database when the volume
holding job is recycled.

See also the documentation for the client autprune (which is deprecated):
https://docs.bareos.org/Configuration/Director.html#config-Dir_Client_AutoPrune

And the pool autoprune (which is the bareos default way of pruning):
https://docs.bareos.org/Configuration/Director.html#config-Dir_Pool_AutoPrune
>
>  * using deprecated keyword FileRetention on line 6 of file /etc/bareos/bareos-dir.d/client/server.conf
>  * using deprecated keyword JobRetention on line 7 of file /etc/bareos/bareos-dir.d/client/server.conf
>  * using deprecated keyword AutoPrune on line 8 of file /etc/bareos/bareos-dir.d/client/server.conf


Bet regards!

Philipp
--
Mit freundlichen Grüßen

Philipp Storz philip...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221 63 06 93-92
http://www.bareos.com Fax: +49 221 63 06 93-10

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Geschäftsführer: Stephan Dühr, J. Steffens, P. Storz

Cliff Odijk

unread,
Jan 12, 2024, 10:01:23 AM1/12/24
to bareos-users
Hi Philipp,

Thanks for the reply! I clears up a lot. 

Op vrijdag 12 januari 2024 om 14:20:20 UTC+1 schreef Philipp Storz:
Reply all
Reply to author
Forward
0 new messages