Delete from disk

31 views
Skip to first unread message

Yariv Hazan

unread,
Nov 9, 2023, 3:42:11 AM11/9/23
to bareos-users
Hi,
When using bconsole to delete jobs disk space doe not seem to be free.
How do I delete the job and have the data removed form disk?
Thanks,
Yariv

Miguel Santos

unread,
Nov 9, 2023, 3:58:42 AM11/9/23
to bareos-users
This is normal behavior, if configured correctly (Maximum Volume Size, N. Volumes) the volumes will be recycled and the data consumption will not pass your limits once you reach your settings.

The retention periods are applied only for catalog records, this means that even if a volume is Purged or its retention period has reached, BAREOS will not do anything to the volume but it may reuse that volume and write new data to it. There is a valid reason for this in larger systems where you don't have immediate access to tapes. 

However, for file-based backups probably those settings are not configured and it will create volumes indefinitely. Since this is not an easy answer depending on the strategy you want to follow, I would suggest to look at: https://docs.bareos.org/TasksAndConcepts/VolumeManagement.html

Spadajspadaj

unread,
Nov 9, 2023, 4:27:00 AM11/9/23
to bareos...@googlegroups.com

Remember that by while you think about disk files, in many environments backup storage resides on tapes so volumes are physical media which cannot be "deleted" - if you purge jobs from the database you simply mark the volume as empty and it can be overwritten with subsequent jobs.

Having said that - bareos has some additional concepts around media taking into account the fact that they might actually be files in the directory (like automatic creation of volumes - something that is impossible with tapes since you can't magic a physical tape out of thin air).

Whay you might look into is https://docs.bareos.org/Configuration/Director.html#config-Dir_Pool_ActionOnPurge

But depending on your particular configuration some options might or might not apply.

MK

--
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 bareos-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/ed9a4a08-32dc-44da-8a69-08b4c1f0e665n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages