On mardi, 25 juillet 2017 15.57:39 h CEST Jon SCHEWE wrote:
> On 7/25/17 8:45 AM, Florian Schöngaßner wrote:
> > Hi,
> >
> > Is it possible to have a schedule for Friday of the first week in an
> > 8-week-cycle or just every second month? Furthermore, is there to way to
> > schedule the exact opposite, every Friday except the first in an
> > 8-week-cycle?
> I expect that you could do something like I do for my offsite backups. I
> run an offsite backup every other week on a Sunday. Here's the schedule.
>
> Schedule {
> Name = "Offsite"
>
> # run every other week
> Run = Level=Full w01 sun at 4:00
> Run = Level=Full w03 sun at 4:00
> Run = Level=Full w05 sun at 4:00
> Run = Level=Full w07 sun at 4:00
> Run = Level=Full w09 sun at 4:00
> Run = Level=Full w11 sun at 4:00
> Run = Level=Full w13 sun at 4:00
> Run = Level=Full w15 sun at 4:00
> Run = Level=Full w17 sun at 4:00
> Run = Level=Full w19 sun at 4:00
> Run = Level=Full w21 sun at 4:00
> Run = Level=Full w23 sun at 4:00
> Run = Level=Full w25 sun at 4:00
> Run = Level=Full w27 sun at 4:00
> Run = Level=Full w29 sun at 4:00
> Run = Level=Full w31 sun at 4:00
> Run = Level=Full w33 sun at 4:00
> Run = Level=Full w35 sun at 4:00
> Run = Level=Full w37 sun at 4:00
> Run = Level=Full w39 sun at 4:00
> Run = Level=Full w41 sun at 4:00
> Run = Level=Full w43 sun at 4:00
> Run = Level=Full w45 sun at 4:00
> Run = Level=Full w47 sun at 4:00
> Run = Level=Full w49 sun at 4:00
> Run = Level=Full w51 sun at 4:00
> Run = Level=Full w53 sun at 4:00
> }
>From the manual,
http://doc.bareos.org/master/html/bareos-manual-main-reference.html#x1-138001
you could attempt to use modulo operator to minimize the number of line
Schedule {
Name = "Odd Weeks"
Run = w01/w02 at 23:10
}
Schedule {
Name = "Even Weeks"
Run = w02/w02 at 23:10
}
Schedule {
Name = "On the 3rd week in a 5-week-cycle"
Run = w03/w05 at 23:10
}
--
Bruno Friedmann
Ioda-Net Sàrl www.ioda-net.ch
Bareos Partner, openSUSE Member, fsfe fellowship
GPG KEY : D5C9B751C4653227
irc: tigerfoot
openSUSE Tumbleweed
Linux 4.11.8-2-default x86_64 GNU/Linux, nvidia: 375.66
Qt: 5.9.1, KDE Frameworks: 5.36.0, Plasma: 5.10.3, kmail2 5.5.2
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.