Problem with Scheduling Months being ignored

27 views
Skip to first unread message

Ashley

unread,
Jan 23, 2015, 8:48:14 PM1/23/15
to bareos...@googlegroups.com
Hi Guys,

As we are currently using 7 x LTO-6 tapes for a full backup it is beginning to get quote troublesome sending 7 tapes at a time offsite.

I am trying to create and offsite schedule that basically takes a Full backup on the first of Jan and the first of Dec and then does a differential every Saturday. This will mean that I only have to send 7 tapes offsite every 6 months and the rest of the time one or 2 a week.

My Problem is i have defined the schedule as so

Schedule {
Name = "OffsiteCycle"
Run = Full on jun 1 at 07:00
Run = Full on dec 1 at 07:00
Run = Differential 1st sat at 07:05
Run = Differential 2nd sat at 07:05
Run = Differential 3rd sat at 07:05
Run = Differential 4th sat at 07:05
Run = Differential 5th sat at 07:05
}

But when i run show schedule in bconsole i get the following:
as you can see the month is being ignored.

Schedule {
Name = "OffsiteCycle"
run = level=Full 1 at 07:00
run = level=Full 1 at 07:00
run = level=Differential 1st Sat at 07:05
run = level=Differential 2nd Sat at 07:05
run = level=Differential 3rd Sat at 07:05
run = level=Differential 4th Sat at 07:05
run = level=Differential 5th Sat at 07:05
}

Any help would be appreciated.

Regards,

Ashley

Bruno Friedmann

unread,
Jan 24, 2015, 2:53:28 AM1/24/15
to bareos...@googlegroups.com
you've mixed the day and month order
check
http://doc.bareos.org/master/html/bareos-manual-main-reference.html#x1-1010008.4

Should be
Schedule {
Name = "OffsiteCycle"
Run = Full on 1 jun at 07:00
Run = Full on 1 dec at 07:00
Run = Differential sat at 07:05
}

Read the doc, and practice ...

Then I've a joker question : What happen if the 1st decembre or june is a saturday ?
:-)


--

Bruno Friedmann
Ioda-Net Sàrl www.ioda-net.ch

openSUSE Member & Board, fsfe fellowship
GPG KEY : D5C9B751C4653227
irc: tigerfoot

Ashley Stonham

unread,
Jan 24, 2015, 7:15:45 AM1/24/15
to Bruno Friedmann, bareos...@googlegroups.com
Hi Bruno,

Thanks for the reply. I have spent my life in the Bareo¹s Docs over the
last two weeks and already have a fully working configuration.
However I am trying to setup a second backup schedule.

I have also tried various combinations of mixing day month order and the
problem still exists. For example this is what I have now

Schedule {
Name = "OffsiteCycle"
Run = Full on 1st sat jun at 07:00
Run = Full on 1st sat dec at 07:00
Run = Differential 1st sun at 07:05
Run = Differential 2nd sun at 07:05
Run = Differential 3rd sun at 07:05
Run = Differential 4th sun at 07:05
Run = Differential 5th sun at 07:05
}

Show schedules still shows:

Enter a period to cancel a command.
*reload
*show schedules


Schedule {
Name = "OffsiteCycle"
run = level=Full 1st Sat at 07:00
run = level=Full 1st Sat at 07:00
run = level=Differential 1st Sun at 07:05
run = level=Differential 2nd Sun at 07:05
run = level=Differential 3rd Sun at 07:05
run = level=Differential 4th Sun at 07:05
run = level=Differential 5th at 07:05
}



If I set the schedule to:

Schedule {
Name = "OffsiteCycle"
Run = Full on 1st sat jun at 07:00 # (#04)
Run = Full on 1st sat dec at 07:00 # (#04)
Run = Differential 1st sun at 07:05 # (#04)
Run = Differential 2nd sun at 07:05 # (#04)
Run = Differential 3rd sun at 07:05 # (#04)
Run = Differential 4th sun at 07:05 # (#04)
Run = Differential 5th sun at 07:05 # (#04)
}


bconsole:
*reload
*show schedules


Schedule {
Name = "OffsiteCycle"
run = level=Full 1 at 07:00
run = level=Full 1 at 07:00
run = level=Differential 1st Sun at 07:05
run = level=Differential 2nd Sun at 07:05
run = level=Differential 3rd Sun at 07:05
run = level=Differential 4th Sun at 07:05
run = level=Differential 5th at 07:05
}




IT seems not matter what combination I put in the month is ignored. I am
running the latest 14.2 so could this be a bug??

Ash
>--
>You received this message because you are subscribed to a topic in the
>Google Groups "bareos-users" group.
>To unsubscribe from this topic, visit
>https://groups.google.com/d/topic/bareos-users/9ZLj__95Lqs/unsubscribe.
>To unsubscribe from this group and all its topics, send an email to
>bareos-users...@googlegroups.com.
>To post to this group, send email to bareos...@googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.


Ashley

unread,
Jan 24, 2015, 7:17:28 AM1/24/15
to bareos...@googlegroups.com
Also in answer to your Joker quetion it will block waiting on the tape drive until the previous full backup that started 5 minutes earlier finishes.

Ashley

unread,
Jan 24, 2015, 7:22:06 AM1/24/15
to bareos...@googlegroups.com
If it try your example i still get the same result, could it be a bug in 14.2??

Schedule {
Name = "OffsiteCycle"
Run = Full on 1 jun at 07:00 # (#04)
Run = Full on 1 dec at 07:00 # (#04)
Run = Differential 1st sun at 07:05 # (#04)
Run = Differential 2nd sun at 07:05 # (#04)
Run = Differential 3rd sun at 07:05 # (#04)
Run = Differential 4th sun at 07:05 # (#04)
Run = Differential 5th sun at 07:05 # (#04)
}

bconsole:

Schedule {
Name = "OffsiteCycle"
run = level=Full 1 at 07:00
run = level=Full 1 at 07:00
run = level=Differential 1st Sun at 07:05
run = level=Differential 2nd Sun at 07:05
run = level=Differential 3rd Sun at 07:05
run = level=Differential 4th Sun at 07:05
run = level=Differential 5th at 07:05
}

Marco van Wieringen

unread,
Jan 24, 2015, 7:43:03 AM1/24/15
to bareos...@googlegroups.com
On 01/24/15 01:22 PM, Ashley wrote:
> If it try your example i still get the same result, could it be a bug in 14.2??

Seems the pretty printer indeed doesn't print months. Added this bug to
mantis:

https://bugs.bareos.org/view.php?id=407

Its only an output problem parsing is the same as before so it should work
the same as before.

>
> Schedule {
> Name = "OffsiteCycle"
> Run = Full on 1 jun at 07:00 # (#04)
> Run = Full on 1 dec at 07:00 # (#04)
> Run = Differential 1st sun at 07:05 # (#04)
> Run = Differential 2nd sun at 07:05 # (#04)
> Run = Differential 3rd sun at 07:05 # (#04)
> Run = Differential 4th sun at 07:05 # (#04)
> Run = Differential 5th sun at 07:05 # (#04)
> }
>
> bconsole:
>
> Schedule {
> Name = "OffsiteCycle"
> run = level=Full 1 at 07:00
> run = level=Full 1 at 07:00
> run = level=Differential 1st Sun at 07:05
> run = level=Differential 2nd Sun at 07:05
> run = level=Differential 3rd Sun at 07:05
> run = level=Differential 4th Sun at 07:05
> run = level=Differential 5th at 07:05
> }
>


--
Marco van Wieringen marco.van...@bareos.com
Bareos GmbH & Co. KG Phone: +49-221-63069389
http://www.bareos.com

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: Stephan Dühr, M. Außendorf, J. Steffens,
P. Storz, M. v. Wieringen

Ashley Stonham

unread,
Jan 24, 2015, 7:48:25 AM1/24/15
to Marco van Wieringen, bareos...@googlegroups.com
Thanks Marco,

I also just noticed that the days are not printed after the 5th keyword as
per example below. Possibly related to the same issue.

...
Run = Differential 4th sun at 07:05 # (#04)
Run = Differential 5th sun at 07:05 # (#04)
Š


Output:


run = level=Differential 4th Sun at 07:05
run = level=Differential 5th at 07:05


Let me know if you need me to test anything.

Ash :)

On 24/01/2015 11:42 pm, "Marco van Wieringen"

Marco van Wieringen

unread,
Jan 24, 2015, 8:07:55 AM1/24/15
to bareos...@googlegroups.com
On 01/24/15 01:48 PM, Ashley Stonham wrote:
> Thanks Marco,
>
> I also just noticed that the days are not printed after the 5th keyword as
> per example below. Possibly related to the same issue.
Don't think its related but an other output problem. The code
is missing a loop for printing the months so that is pretty obvious.

> ...
> Run = Differential 4th sun at 07:05 # (#04)
> Run = Differential 5th sun at 07:05 # (#04)
> Š
>
>
> Output:
>
>
> run = level=Differential 4th Sun at 07:05
> run = level=Differential 5th at 07:05
>
>
> Let me know if you need me to test anything.
>
Think that becomes an option when it enters into our bleeding edge codebase.
But given the example think we can stuff this config in a test VM and
see if the
fixed pretty printer behaves somewhat better.

Bruno Friedmann

unread,
Jan 25, 2015, 10:06:33 AM1/25/15
to bareos...@googlegroups.com
How could you have a 6th monday ?

Ashley

unread,
Jan 25, 2015, 7:14:27 PM1/25/15
to bareos...@googlegroups.com
On Monday, January 26, 2015 at 2:06:33 AM UTC+11, Bruno Friedmann wrote:
> How could you have a 6th monday ?
>

Bruno 5th not 6th. Plenty of months have 5 repeating days.

January this year has 5 x thur, fri and saturdays.

Ash
Reply all
Reply to author
Forward
0 new messages