On 4/11/23 11:20, Anderson, Craig via Bacula-users wrote:
Hello,Is it possible to delete a completed job and free the associated S3 storage in the Volume? The volume contains the parts from multiple jobs, so deleting the whole volume is out. I looked in the manual about purging and truncating the volume but couldn’t find details about exactly what those commands do, which is somewhat frustrating.Any help would be appreciated. Craig
Hello Craig, Short answer: noLong answer: Bacula does not delete data inside of volumes. When a volume reaches it retention period, bacula will purge it, but this is *only* a catalog DB operation. The information about files and jobs on the volume are removed from the catalog, the volume is marked `Recycled` and it becomes eligible to be used in a Backup/Copy/Migrate job.
There is an amendment to the above, and this is when you have `ActionOnPurge = truncate` set in the Pool(s). In these cases, bacula will actually truncate the file volume down to just the Bacula label, so only about 260 bytes or so, depending on the name of the volume which gets written into the file volume.
If you add the `ActionOnPurge = truncate` setting to as pool after volumes exist in it, you will need to do the following so that all existing volumes inherit this new setting:
* update volume fromallpools Now, when Bacula prunes, purges, and recycles a volume, the space it used will be reclaimed. Above is a simplified explanation of the process, but I hope it helps,OH! I forgot... With S3 cloud volumes, you have the Cloud resource setting `TruncateCache = xxxx`, where xxxx can be `No', 'AfterUpload`, or `AtEndOfJob`. In the case of using this feature, as volume parts are uploaded successfully to the cloud, you will have just one file in each cloud volume directory: `part.1`, which will be ~250 bytes and simply contains the Bacula label.
Hope this helps, Best regards, Bill -- Bill Arlofski w...@protonmail.com
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users