Bacula-users

Re: [Bacula-users] Problem with schedule week of month ( wom )

2017-04-24 12:42:38
Subject: Re: [Bacula-users] Problem with schedule week of month ( wom )
From: Kern Sibbald <kern AT sibbald DOT com>
To: olivier.delestre AT univ-rouen DOT fr, bacula-users AT lists.sourceforge DOT net
Date: Mon, 24 Apr 2017 18:41:35 +0200

Yes, in English the 3rd Friday of April is 21 April, but what you are telling Bacula (remember it is a computer so its language is a bit different/simpler) is: run the VirtualFull on Friday of the 3rd week.

I got tired of trying to figure out the schedules using the show schedule command, so I wrote the "status scheduled" command, which does most of the work for you.  It has a few options such as days=nnn  limit=nnn time=xxx job=xxx ...

If I remember right, the time option allows you to move around in time so if you want to see something a year later you don't need to print zillions of lines of output.

Best regards,

Kern


On 04/24/2017 02:37 PM, Olivier Delestre wrote:
My schedule is this :
Schedule {
  Name = "Weekly-virtualfull-3"
## ex 1st 2nd 3rd 4th 5th
    Run = VirtualFull 3rd fri at 19:00
    Run = Incremental 1st 2nd 4th 5th 6th fri at 19:00
    Run = Incremental mon-thu at 19:00
}

and for me, human ;) the third Friday is the 21 April on my calendar.
Now I know it. And the virtual backup was launched by hand.

Note of version : Bacula 7.0.5

Le 24/04/2017 à 14:27, Kern Sibbald a écrit :

Well if I am not mistaken,

You didn't show your schedule, but I suspect that you are taking "3rd Fri" to mean the third Friday, when it most likely means what is shown below, which is Level=VirtualFull the Friday of the 3rd week, which is the 14th of April.

Best regards,

Kern


On 04/24/2017 01:54 PM, Olivier Delestre wrote:
Hi,

I Schedule a backup ( level = VirtualFull ) the 3rd fri of april 2017 and .... no virtual backup start but incremental
--
SHOW SCHEDULE
--
Schedule: name=Weekly-virtualfull-3
  --> Run Level=VirtualFull
      hour=19
      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 26 27 28 29 30
      month=0 1 2 3 4 5 6 7 8 9 10 11
      wday=5
      wom=2
      woy=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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
      mins=0
  --> Run Level=Incremental
      hour=19
      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 26 27 28 29 30
      month=0 1 2 3 4 5 6 7 8 9 10 11
      wday=5
      wom=0 1 3 4 5
      woy=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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
      mins=0
  --> Run Level=Incremental
      hour=19
      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 26 27 28 29 30
      month=0 1 2 3 4 5 6 7 8 9 10 11
      wday=1 2 3 4
      wom=0 1 2 3 4 5
      woy=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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
      mins=0

--
Schedule {
  Name = "Weekly-virtualfull-3"
## ex 1st 2nd 3rd 4th 5th
    Run = VirtualFull 3rd fri at 19:00
    Run = Incremental 1st 2nd 4th 5th 6th fri at 19:00
    Run = Incremental mon-thu at 19:00
}
--
I think a bacula bug. Or I did not understand everything and it starts at 0



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



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