SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Date / Time Specification issue
Author Message
Post Date / Time Specification issue 
Hi,

My first post so please be gentle.
OS RHEL5.7 server
Hardware Dell R810 and PV-124T with LTO-4 tape
Bacula 5.2.4 complied from source (couldnt get bat or bwx-console to
work (depkgs-qt or installing qt4))

I have Bacula installed. I have got the tape changer and tape drive
working. I have run full and incremental daily backups and have
restored backups from tape. So far all good.

I am about to get serious and start properly running the system rather
than running tests.

In my bacula-dir.conf I have been trying to schedule backups to run on
the folowing intervals:-

1) 2nd,3rd,4th,5th Friday at <time>
2) 1st Friday of <month> at <time> where month = jan-nov in seperate
schedules per month


using the examples from the main manual pdf section 22.5 the Schedule
Resource (manual version 5.2.5 page 161-162)

I see that the following ought to be correct for :-

Case 1 :

Schedule {
 Name = "Week 3 Full Cycle"
 Run = Level=Full Pool=Week_3_Full 3rd friday at 22:00
}

Case 2

Schedule {
 Name = "Month 1 Full Cycle"
 Run = Level=Full Pool=Month_1_Full january 1st friday at 22:00
}

Yet niether register as valid when bacula is restarted.

To test some combinations I tried the following

Schedule {
 Name = "Week_2_Full_Cycle"
 Run = Level=Full Pool=Week_2_Full on friday at 22:01      #no =
doesnt work i.e does not appear as a scheduled job in bacula
 Run = Level=Full Pool=Week_2_Full friday at 22:02         #no
 Run = Level=Full Pool=Week_2_Full at 22:03                #yes = does
work i.e appears as a scheduled job in bacula
 Run = Level=Full Pool=Week_2_Full on monthly at 22:04     #yes
 Run = Level=Full Pool=Week_2_Full monthly at 22:05        #yes
 Run = Level=Full Pool=Week_2_Full on daily at 22:06       #yes
 Run = Level=Full Pool=Week_2_Full daily at 22:07          #yes
 Run = Level=Full Pool=Week_2_Full weekly at 22:08         #yes
 Run = Level=Full Pool=Week_2_Full on 1st friday at 22:09  #no
 Run = Level=Full Pool=Week_2_Full 1st friday at 22:10     #no
 Run = Level=Full Pool=Week_2_Full on 1st fri at 22:11     #no
 Run = Level=Full Pool=Week_2_Full 1st fri at 22:12        #no
}

So it appears that anything using a <wday-keyword> doesnt work.

To try and get my head round specifying the date/time I did a diagram:-

<begin bad ascii art>

<date-time-spec> = <month-spec> <day-spec> <time-spec> i.e. "jan 1st
sun at 23:15"
where
<month-spec> <day-spec> <time-spec> i.e. "jan 1st sun at 23:15"
| | |
| | |-- = <at-keyword> <time> i.e. "at 23:15"
or "at 10:30am"
| | | |
| | | |-- = <hour>:<minute>
| | | |-- = <12hour>:<minute>am
| | | |-- = <12hour>:<minute>pm
| | |
| | |-- = <hourly-keyword> i.e. "hourly"
| |
| |-- = <day> i.e. "26"
| |-- = <wday-keyword> i.e. "thu"
| |-- = <day-range> i.e. "1-7" (* see below)
| | |
| | |-- = <day>-<day>
| |
| |-- = <wday-range>
| | |
| | |-- = <wday-keyword>-<wday-keyword> i.e. "wed-sat"
| |
| |-- = <week-keyword> <wday-keyword> i.e. "1st sun"
| |
| |-- = <week-keyword> <wday-range> i.e. "2nd mon-fri
| | |
| | |-- =
<wday-keyword>-<wday-keyword>
| |
| |-- = <daily-keyword> i.e. "daily"
|
|
|-- = <month-keyword> i.e. "jan"
|
|-- = <month-range> i.e. "jul-aug"
| |
| |-- = <month-keyword>-<month-keyword>
|
|-- = <monthly-keyword> i.e. "monthly"

</begin bad ascii art> --- It works in fixed pitch font but goes a tad
awry in proportional....

Which would seem to suggest that both case 1 and 2 should work but they dont.

Am I doing something silly or missing something blindingly obvious?

* As an aside should the line in the list of specifications : -
<day-spec> = <day> | <wday-keyword> | <day> | <wday-range> |
<week-keyword> <wday-keyword> | <week-keyword> <wday-range> |
<daily-keyword>
Actually read
<day-spec> = <day> | <wday-keyword> | <day-range> | <wday-range> |
<week-keyword> <wday-keyword> | <week-keyword> <wday-range> |
<daily-keyword> ?

Any advice greatly appreciated I am somewhat stuck if it isnt possible
to schedule as shown in case 1 or case 2.

Thanks

Mike 8-{>

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Bacula-users mailing list
Bacula-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Post Date / Time Specification issue 
On Thu, Feb 2, 2012 at 6:59 PM, Mike Roberts
<mike.work.roberts < at > gmail.com> wrote:
Hi,

My first post so please be gentle.
OS RHEL5.7 server
Hardware Dell R810 and PV-124T with LTO-4 tape
Bacula 5.2.4 complied from source (couldnt get bat or bwx-console to
work (depkgs-qt or installing qt4))

I have Bacula installed. I have got the tape changer and tape drive
working. I have run full and incremental daily backups and have
restored backups from tape. So far all good.

I am about to get serious and start properly running the system rather
than running tests.

In my bacula-dir.conf I have been trying to schedule backups to run on
the folowing intervals:-

1) 2nd,3rd,4th,5th Friday at <time>
2) 1st Friday of <month> at <time> where month = jan-nov in seperate
schedules per month


using the examples from the main manual pdf section 22.5 the Schedule
Resource (manual version 5.2.5 page 161-162)

I see that the following ought to be correct for :-

Case 1 :

Schedule {
 Name = "Week 3 Full Cycle"
 Run = Level=Full Pool=Week_3_Full 3rd friday at 22:00
}

Case 2

Schedule {
 Name = "Month 1 Full Cycle"
 Run = Level=Full Pool=Month_1_Full january 1st friday at 22:00
}

Yet niether register as valid when bacula is restarted.

To test some combinations I tried the following

Schedule {
 Name = "Week_2_Full_Cycle"
 Run = Level=Full Pool=Week_2_Full on friday at 22:01      #no =
doesnt work i.e does not appear as a scheduled job in bacula
 Run = Level=Full Pool=Week_2_Full friday at 22:02         #no
 Run = Level=Full Pool=Week_2_Full at 22:03                #yes = does
work i.e appears as a scheduled job in bacula
 Run = Level=Full Pool=Week_2_Full on monthly at 22:04     #yes
 Run = Level=Full Pool=Week_2_Full monthly at 22:05        #yes
 Run = Level=Full Pool=Week_2_Full on daily at 22:06       #yes
 Run = Level=Full Pool=Week_2_Full daily at 22:07          #yes
 Run = Level=Full Pool=Week_2_Full weekly at 22:08         #yes
 Run = Level=Full Pool=Week_2_Full on 1st friday at 22:09  #no
 Run = Level=Full Pool=Week_2_Full 1st friday at 22:10     #no
 Run = Level=Full Pool=Week_2_Full on 1st fri at 22:11     #no
 Run = Level=Full Pool=Week_2_Full 1st fri at 22:12        #no
}

So it appears that anything using a <wday-keyword> doesnt work.

To try and get my head round specifying the date/time I did a diagram:-

<begin bad ascii art>

<date-time-spec> = <month-spec> <day-spec> <time-spec> i.e. "jan 1st
sun at 23:15"
where
<month-spec> <day-spec> <time-spec> i.e. "jan 1st sun at 23:15"
     |          |           |
     |          |           |-- = <at-keyword> <time> i.e. "at 23:15"
or "at 10:30am"
     |          |           |                    |
     |          |           |                    |-- = <hour>:<minute>
     |          |           |                    |-- = <12hour>:<minute>am
     |          |           |                    |-- = <12hour>:<minute>pm
     |          |           |
     |          |           |-- = <hourly-keyword> i.e. "hourly"
     |          |
     |          |-- = <day> i.e. "26"
     |          |-- = <wday-keyword> i.e. "thu"
     |          |-- = <day-range> i.e. "1-7"  (* see below)
     |          |         |
     |          |         |-- = <day>-<day>
     |          |
     |          |-- = <wday-range>
     |          |          |
     |          |          |-- = <wday-keyword>-<wday-keyword> i.e. "wed-sat"
     |          |
     |          |-- = <week-keyword> <wday-keyword> i.e. "1st sun"
     |          |
     |          |-- = <week-keyword> <wday-range> i.e. "2nd mon-fri
     |          |                         |
     |          |                         |-- =
<wday-keyword>-<wday-keyword>
     |          |
     |          |-- = <daily-keyword> i.e. "daily"
     |
     |
     |-- = <month-keyword> i.e. "jan"
     |
     |-- = <month-range> i.e. "jul-aug"
     |          |
     |          |-- = <month-keyword>-<month-keyword>
     |
     |-- = <monthly-keyword> i.e. "monthly"

</begin bad ascii art> --- It works in fixed pitch font but goes a tad
awry in proportional....

Which would seem to suggest that both case 1 and 2 should work but they dont.

Am I doing something silly or missing something blindingly obvious?

* As an aside should the line in the list of specifications : -
<day-spec> = <day> | <wday-keyword> | <day> | <wday-range> |
<week-keyword> <wday-keyword> | <week-keyword> <wday-range> |
<daily-keyword>
Actually read
<day-spec> = <day> | <wday-keyword> | <day-range> | <wday-range> |
<week-keyword> <wday-keyword> | <week-keyword> <wday-range> |
<daily-keyword>      ?

Any advice greatly appreciated I am somewhat stuck if it isnt possible
to schedule as shown in case 1 or case 2.

Thanks

Mike 8-{>

After further research I have found the solution to my problem.

It isnt a bacula problem per se. It is a problem, as far as I can
tell, of using the Webmin "Bacula Backup System" module contributed
to Webmin by Linmin.

The "Backup and Restore Actions" panel "Director Status" report seems
to have a problem with some permutations of schedule parameters and
doesnt display them. This makes it appear as if some schedule lines
have not been recognised by the Director. The problems seem to be
related to the use of <week-keyword> <wday-keyword> but also has an
apparently random element. Just to add to the fun. I will try to
contact Linmin and pass this on to them.

Running a script :-

#!/bin/sh
# Script to list the schedules in bacula-dir.conf
#
# Uses bconsole and runs a bconsole command then exits bconsole
#
/<your-path-to>/bacula/bconsole -c
/<your-path-to>/bacula/bconsole.conf > schedules.txt <<END_OF_DATA
show schedules
quit
END_OF_DATA
# EOF

Dumps the schedules to a file, schedules.txt, which can be easily
checked and shows all the configured schedules to be correctly listed.

Hope this is useful to someone.

Cheers Mike 8-{>

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Bacula-users mailing list
Bacula-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB