On Wed, Nov 25, 2009 at 10:08 AM, David Dumortier <david.dumort...@linagora.com> wrote: > > John Drescher a écrit : >> On Wed, Nov 25, 2009 at 4:07 AM, David Dumortier >> <david.dumort...@linagora.com> wrote: >>> Hi all, >>> >>> David Dumortier a écrit : >>>> Hello, >>>> >>>> John Drescher a écrit : >>>>> On Mon, Nov 23, 2009 at 4:16 AM, David Dumortier >>>>> <david.dumort...@linagora.com> wrote: >>>>>> >>>>>> My bacula-sd.conf : >>>>>> Device { >>>>>> Name = stockage >>>>>> Media Type = File >>>>>> Archive Device = /mnt/sauvegardes >>>>>> LabelMedia = yes; # lets Bacula label unlabeled >>>>>> media >>>>>> Random Access = Yes; >>>>>> AutomaticMount = yes; # when device opened, read it >>>>>> RemovableMedia = no; >>>>>> AlwaysOpen = yes; >>>>>> } >>>>>> >>>>>> My bacula-dir.conf : >>>>>> Client { >>>>>> Name = myhost >>>>>> Address = myIP >>>>>> FDPort = 9102 >>>>>> Catalog = MyCatalog >>>>>> Password = "*****" >>>>>> File Retention = 7 days >>>>>> Job Retention = 7 days >>>>>> AutoPrune = yes # Prune expired Jobs/Files >>>>>> } >>>>>> >>>>> >>>>> They will grow until you run out of disk space on your storage if you >>>>> do not set one of the 4 pool options to limit the size or usage of the >>>>> volumes. >>>>> >>>>> * Use Volume Once = yes >>>>> * Volume Use Duration = ttt >>>>> * Maximum Volume Jobs = nnn >>>>> * Maximum Volume Bytes = mmm >>>>> >>>>> see >>>>> http://www.bacula.org/en/rel-manual/Automatic_Volume_Recycling.html >>>>> >>>>> Also remember that retention periods do not take effect until the >>>>> volume is marked Full or Used. >>>>> >>>>> John >>>>> >>>> >>>> Ok, so I missed this point in the documentation. So I read it. >>>> I don't understand everything (due to my poor english or subtilities I >>>> don't see). >>>> >>>> What I have : >>>> >>>> Pool { >>>> Name = Default >>>> Pool Type = Backup >>>> Recycle = yes >>>> AutoPrune = yes >>>> Volume Retention = 14 days >>>> Maximum Volumes = 2 >>>> } >>>> >>>> My volumes : >>>> | 4 | P21 | Append | 1 | 239,080,660,514 | ... >>>> | 5 | P220001 | Append | 1 | 0 | ... >>>> >>>> >>>> What I want to reconfigure (is it in the Pool section ?) : >>>> Volume Use Duration = 7 days >>>> Maximum Volume Bytes = 250G >>>> >>>> Is this make a 2 weeks rotation ? (P21 for a week, P220001 for the >>>> second >>>> week) >>>> >>>> Thank you for any help >>>> -- >>>> David Dumortier >>>> >>> >>> So I have this on my bacula-dir.conf >>> Pool { >>> Name = Default >>> Pool Type = Backup >>> Recycle = yes # Bacula can automatically recycle >>> Volumes >>> AutoPrune = yes # Prune expired volumes >>> Volume Retention = 7 days # one week >>> Maximum Volumes = 30 >>> Maximum Volume Bytes = 25GB >>> Volume Use Duration = 7 days >>> } >>> >>> But I don't have any rotation on my SD-file. >>> >>> Any help would be appreciated. >>> -- >>> David Dumortier >>> >> >> >> Changes to some of these parameters after the fact only apply to new >> volumes. To fix this use >> >> update >> >> then select "Pool from resource" >> >> Then select your pool. > > Ok I have > MaxVolBytes 25,000,000,000 > MaxVols 30 > >> Also remember that Retention does not start until the volume is marked >> Full or Used. >> >> Use the list media command to check that. > > I have : > 4 VolStatus Append VolBytes 296,395,270,741 > 5 VolStatus Append VolBytes 0 > > But I search an automatic method to mark my Vol 4 Full. > Perhaps I must tag the first time ?
No, this is not required however changing the pool resource in bacula-dir.conf file does not (totally?) affect currently labeled volumes. It is more of a plan for new volumes. That is why I wanted you to update from pool resource. I put the (totally?) part in there because I am not sure about the max vol size param. I do know retention periods are not changed on currently labled volumes if you reduce the retention time in the pool resource. Did you execute the update pool from resource command that I suggested? You can mark volume 4 full or used by the update volume status command to force the retention period to begin. > > Second question, have I to create the 30 volumes ? > No. John ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users