I all, I work with bacula since more than 1 year.. but I start have some doubt I upgrade my backup software only to have the ability to truncate the volumes automatically, now I'm running 5.0.2
------------------------------------- I have this Pool: Pool { Name = P-daily Maximum Volume Bytes = 3GB Pool Type = Backup AutoPrune = yes VolumeRetention = 7d Maximum Volumes = 3 Recycle = no Purge Oldest Volume = yes ActionOnPurge=Truncate LabelFormat = "V-daily-" } I would like that when is the end of the volume's retention period, it will be truncate, delete from the disk As the manual say http://www.bacula.org/5.1.x-manuals/en/main/main/New_Features_in_5_0_1.html I put this: Job { Name = CatalogBackup ... RunScript { RunsWhen=After RunsOnClient=No Console = "purge volume action=all allpools storage=File" } } But the volumes are always in the storage ---------------------------------- ########### TEST I make test on old and no mo used volumes: The volume in this example is this: | 1,281 | volume-0036 | Used | 1 | 33,070,351 | 0 | 604,800 | 0 | 0 | 0 | File | 2010-07-25 03:27:56 | The Pool is these: Pool { Name = Daily Use Volume Once = yes Pool Type = Backup Purge Oldest Volume = yes AutoPrune = yes VolumeRetention = 7d # recycle in 7 day Maximum Volumes = 49 # faccio si che il backup giornaliero sia tenuto solo 1 settimana Recycle = yes Recycle Oldest Volume = yes #reciclo volume precedente } I update volume-36 on old 'Daily' pool (when I upgrade the software I change all the Pool: Daily becomes P-daily) update volume=volume-0036 ActionOnPurge=Truncate this volumes had Pool retention 7d, but it was created on 2010-07-25 so it was expired in my opinion I try to prune the volume. Is correct that this command asks me "The current Volume retention period is: 7 days" ?? If the policy is "AutoPrune=YES" this Volume should be just pruned, isn't it? Continuing I write 'yes' The bconsole say me: " There are no more Jobs associated with Volume "volume-0036". Marking it purged." OK, this means that the volume was had been purged before!! Now.. if the config file say "Purge Oldest Volume = yes" why this volumes was in state 'USED', instead of "Purged"?? Ok, now I want to truncate it, delete it from disk trough the command line!! How I have to do? Now the command "purge" on this volumes will not work (" Volume "volume-0036" has VolStatus "Purged" and cannot be purged.The VolStatus must be: Append, Full, Used, or Error to be purged") I try to use next volumes, immediatly with the purge command ( volume-0037 | Used), The console say that "there are no mor jobs assocuiated" Ok, and that the volume will be marked as purged.. ok, but why it don't truncate the volume from the disk? So I use the command line: purge volume action=truncate storage=ST-1000Gb pool=Daily but the restponse is -> "No volume founds to perform truncate action(s)" What's wrong? Help me.. I'm going crazy behind these problems Thank's --- Carlo
------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users