A few points from Alan Brown to keep in mind:
If Maximum Volumes (Dir->Pool) is not set, Bareos will prefer to demand new volumes over forcibly purging older volumes.
If volumes become free through pruning and the Volume retention period has expired, then they get marked as Purged and are immediately available for recycling - these will be used in preference to creating new volumes.
Am 12.12.24 um 20:23 schrieb Jon Schewe:
>
> Am I correct that this is a safe operation to run regularly and won't
> end up losing data that is within my retention periods?
Correct.
However, if there is a fixed amount of disk-space (which is usually the
case) my preferred method is as follows:
* Configure your disk pools as you need them (i.e. Full, Differential,
Incremental, Whatever)
* Disable auto-labeling
* Set maximum volume bytes for each of the pools to the same value
* Add a scratch pool
* Set "scratch pool" and "recycle pool" in your backup pools to point to
that scratch pool
* Pre-label N volumes in the scratch pool where N = total space /
maximum volume bytes
Now when your backups write to one of the pools, they'll fetch volumes
from the scratch pool as required. When a volume is recycled it will go
back to the scratch pool, so it is available to be reused in any other
backup pool.