Hello Chris,
> Le 16/08/2018 à 23:37, Chris Wilkinson a écrit :
>> I did. I implemented the runscript mentioned there that runs daily.
>> Job {
>> Name = CatalogBackup ...
>> RunScript {
>> RunsWhen=After
>> RunsOnClient=No
>> Console = "purge volume action=truncate allpools storage=File"
>> }
>> }
>> This doesn't seem to be having the desired effect. Volumes are not being
>> truncated though I can truncate them manually with bconsole truncate if they
>> are first purged.
>> The thing that puzzles me about this is the storage= statement since I have
>> multiple storages defined.
>> It seems that truncate will only work on purged volumes and volumes will not
>> be
>> purged until their retention time is up.
I read somewhere that the action= purge flag was deprecated after a given
Bacula version in favor of the truncate command.
Last time I tested this with Bacula 9 the following make the trick:
RunScript {
Console = "prune expired volume yes"
Console = "truncate pool=FileSemanal storage=FileChgrSemanalChgr"
RunsWhen = Before
RunsOnFailure = yes
RunsOnClient = no
}
I hope you have success.
>> Regards
Regards,
>> Chris Wilkinson
> Hello,
> Beware :
> * File / Job retentions only have an impact on the catalog's size.
> * Volume retention is the only one related to the space consumed by tapes.
> A
> volume won't be reclaimed until Volume Retention expires.
> Did you also implement these following rules in pools' definitions (with
> different values of course):
> Volume Retention = 42 days # 6 weeks
> Maximum Volume Bytes = 50G # Limit Volume size to something reasonable
> Maximum Volumes = 10 # Limit number of Volumes in Pool
> Recycle Oldest Volume = yes
> RecyclePool = Scratch
> Action On Purge = Truncate
> If you don't define these rules, volumes won't be recycled automatically.
> HTH.
> Jérôme Blion
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
--
Heitor Medrado de Faria | CEO Bacula América Latina, Brasil & USA | Visto EB-1
| LPIC-III | EMC 05-001 | ITIL-F
• Não seja tarifado pelo tamanho dos seus backups, conheça o Bacula Enterprise
http://www.bacula.com.br/enterprise/
• Ministro treinamento e implementação in-company do Bacula Community
http://www.bacula.com.br/in-company/
• Compre o novo livro do Bacula http://www.bacula.com.br/livro
• Brazil +55 (61) 98268-4220 | USA +1 (323) 300-5387 | www.bacula.com.br
Indico as capacitações complementares:
Shell básico e Programação em Shell com Julio Neves | Zabbix com Adail Host.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users