Bacula-users

Re: [Bacula-users] Scheduling question

2009-07-31 15:10:35
Subject: Re: [Bacula-users] Scheduling question
From: John Lockard <jlockard AT umich DOT edu>
To: jwulf AT asetech DOT com
Date: Fri, 31 Jul 2009 15:04:50 -0400
I'm fairly certain that when you do a "status dir", no matter
how many days you specify, you'll only see the soonest occuring
job of a certain level.

So, if you have a Full, Differential and an Incremental, of a
certain job defined then only the next of each of those will
be shown.  If you change your command to "status dir days=500"
you should see pretty much the same output as you currently
have.

-John


On Tue, Jul 28, 2009 at 03:40:39PM -0600, jwulf AT asetech DOT com wrote:
> 
> Bit of a bacula newbie and I am having a problem with a schedule
> that I am trying to create. I poked through the mailing list
> archive and the net and can't seem to find a similar answer.
> 
> My question has to do with using the "week of year" specification.
> 
> 
> Current Setup
> -------------
> OS: linux (FC 10)
> Platform: Intel x86
> Bacula version: 2.4.4-1 (rpm installed)
> Media: Single Ultium tape drive
> 
> 
> Issue
> -----
> 
> I am trying to create a 5 week backup and pool configuration. Each
> week on Saturday morning at 00:05 a Full backup should be started,
> and then for the following week an incremental based on that Saturday
> Full should be started on Monday through Friday at 00:05.
> 
> I would like to setup 5 pools where pool 1 through 4 are set to expire
> in 30 days, and then the week 5 pool is held back and set to expire
> in 365 days. Each pool is going to be a single tape so that I write
> the entire weeks worth of data (i.e. the full, and then the 5
> incrementals).
> 
> I have created a configuration which I thought would implement this
> but it does not appear to be scheduling the weekly incrementals on
> every Monday through Friday.
> 
> When I look at what is scheduled for the next 24 days it appears
> that the weekly Fulls are correct, but for some reason I only
> see a single incremental for each week?
> 
> I am currently in the week 5 cycle so for brevity here are the
> bacula-dir.conf entries for the the week05 job and week05 schedule:
> 
> 
> Job {
>    Name = week05_job
>    Enabled = yes
>    Type = Backup
>    Client = cvgsrv01-fd
>    Messages = Standard
>    Pool = week05_pool
>    Schedule = week05
>    Storage = lto_tape
>    FileSet = home1_applic
> }
> 
> Schedule {
>    Name = week05
>    Run = Level=Full Pool=week05_pool  
> W05,W10,W15,W20,W25,W30,W35,W40,W45,W50 on s
> at at 0:05
>    Run = Level=Incremental Pool=week05_pool  
> W06,W11,W16,W21,W26,W31,W36,W41,W46,W
> 51 on mon-fri at 0:05
> }
> 
> 
> show schedule output (week05 cut and paste)
> -------------------------------------------
> 
> Schedule: name=week05
>    --> Run Level=Incremental
>        hour=0
>        mday=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22  
> 23 24 25 2
> 6 27 28 29 30
>        month=0 1 2 3 4 5 6 7 8 9 10 11
>        wday=1 2 3 4 5
>        wom=0 1 2 3 4
>        woy=6 11 16 21 26 31 36 41 46 51
>        mins=5
>       --> Pool: name=week05_pool PoolType=Backup
>        use_cat=1 use_once=0 cat_files=1
>        max_vols=0 auto_prune=1 VolRetention=1 year
>        VolUse=0 secs recycle=0 LabelFormat=*None*
>        CleaningPrefix=*None* LabelType=0
>        RecyleOldest=0 PurgeOldest=0
>        MaxVolJobs=0 MaxVolFiles=0 MaxVolBytes=0
>        MigTime=0 secs MigHiBytes=0 MigLoBytes=0
>    --> Run Level=Full
>        hour=0
>        mday=0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22  
> 23 24 25 2
> 6 27 28 29 30
>        month=0 1 2 3 4 5 6 7 8 9 10 11
>        wday=6
>        wom=0 1 2 3 4
>        woy=5 10 15 20 25 30 35 40 45 50
>        mins=5
>       --> Pool: name=week05_pool PoolType=Backup
>        use_cat=1 use_once=0 cat_files=1
>        max_vols=0 auto_prune=1 VolRetention=1 year
>        VolUse=0 secs recycle=0 LabelFormat=*None*
>        CleaningPrefix=*None* LabelType=0
>        RecyleOldest=0 PurgeOldest=0
>        MaxVolJobs=0 MaxVolFiles=0 MaxVolBytes=0
>        MigTime=0 secs MigHiBytes=0 MigLoBytes=0
> 
> 
> Status dir days=24 output
> =========================
> 
> 
> status dir days=24
> cvgsrv01-dir Version: 2.4.4 (28 December 2008) i386-redhat-linux-gnu redhat
> Daemon started 28-Jul-09 16:12, 0 Jobs run since started.
>   Heap: heap=135,168 smbytes=34,809 max_bytes=35,094 bufs=209 max_bufs=214
> 
> Scheduled Jobs:
> Level          Type     Pri  Scheduled          Name               Volume
> ================================================================================
> ===
> Incremental    Backup    10  29-Jul-09 00:05    week05_job         week05_01
> Full           Backup    10  01-Aug-09 00:05    week01_job         *unknown*
> Incremental    Backup    10  03-Aug-09 00:05    week01_job         *unknown*
> Full           Backup    10  08-Aug-09 00:05    week02_job         *unknown*
> Incremental    Backup    10  10-Aug-09 00:05    week02_job         *unknown*
> Full           Backup    10  15-Aug-09 00:05    week03_job         *unknown*
> Incremental    Backup    10  17-Aug-09 00:05    week03_job         *unknown*
> ====
> 
> Running Jobs:
> No Jobs running.
> ====
> 
> 
> I'm stumped. If anyone has any clues I would appreciate the help.
> 
> Thanks.
> 
> -jim
> 
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> 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 AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 
> 

-- 
"Well, thanks to the internet, I'm now bored with sex.
 Is there anything to cater to my lust for violence?" - Fry
-------------------------------------------------------------------
         John M. Lockard |  U of Michigan - School of Information
 Unix and Security Admin |      1214 SI North - 1075 Beal Ave.
      jlockard AT umich DOT edu |        Ann Arbor, MI  48109-2112
 www.umich.edu/~jlockard |     734-615-8776 | 734-647-8045 FAX
-------------------------------------------------------------------

------------------------------------------------------------------------------
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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>