I'm doing backups to disk and have bareos setup to automatically label 
volumes as needed, I also have the ability to add disk space to the backup 
partition and I'm working to figure out the right size for my backups by 
watching how full the volume gets and then adding space when needed. 
However I'm finding that old volumes don't appear to be recycled despite 
having autoprune enabled and the purge action set to truncate.
I read through 
https://docs.bareos.org/TasksAndConcepts/VolumeManagement.html and found 
this note:

A few points from Alan Brown to keep in mind:

   - 
   
   If Maximum Volumes (Dir->Pool) 
   
<https://docs.bareos.org/Configuration/Director.html#config-Dir_Pool_MaximumVolumes>
 
   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.
   
This suggests to me the for my particular setup where I have not limited 
the number of volumes nor do I have a limited amount of disk space bareos 
will never prune volumes. Am I understanding this correctly?

I believe that the solution for my situation is to execute the following 
command on a regular basis:
prune volume all  yes

>From my reading this seems to be a safe operation as it will only mark 
volumes as purged once the appropriate retention periods have expired. 
My retention periods are set on the pools only.

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?

-- 
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/bareos-users/4b606086-cdbe-4588-8404-40dcd79d24ffn%40googlegroups.com.

Reply via email to