Re: [Bacula-users] Monthly backup on 1st day except on saturdays
2014-07-14 17:50:36
Hello,
Oops ...
When I look at the schedule that was produced, it does not
correspond to what I wanted to show. The status schedule was
actually made with:
Run = level=Full sun-fri on 3,5 at 2:30
which made reading the output of "show schedule" easier to read.
The real "status schedule" that I should have attached for the
following statement:
Run = level=Full sun-fri on 1 at 2:30
is:
*status schedule days=500
Scheduled Jobs:
Level Type Pri Scheduled Job Name
Schedule
=====================================================================================
Full Backup 10 Fri 01-Aug 02:30 NightlySave
TestSched
Full Backup 10 Mon 01-Sep 02:30 NightlySave
TestSched
Full Backup 10 Wed 01-Oct 02:30 NightlySave
TestSched
Full Backup 10 Mon 01-Dec 02:30 NightlySave
TestSched
Full Backup 10 Thu 01-Jan 02:30 NightlySave
TestSched
Full Backup 10 Sun 01-Feb 02:30 NightlySave
TestSched
Full Backup 10 Sun 01-Mar 02:30 NightlySave
TestSched
Full Backup 10 Wed 01-Apr 02:30 NightlySave
TestSched
Full Backup 10 Fri 01-May 02:30 NightlySave
TestSched
Full Backup 10 Mon 01-Jun 02:30 NightlySave
TestSched
Full Backup 10 Wed 01-Jul 02:30 NightlySave
TestSched
Full Backup 10 Tue 01-Sep 02:30 NightlySave
TestSched
Full Backup 10 Thu 01-Oct 02:30 NightlySave
TestSched
Full Backup 10 Sun 01-Nov 02:30 NightlySave
TestSched
====
which looks a lot more like what Fábio wanted.
Best regards,
Kern
On 07/12/2014 06:03 PM, Kern Sibbald wrote:
Hello Ana,
Interesting problem. Please see below ...
On 07/12/2014 04:00 PM, Ana Emília M. Arruda wrote:
Hi Fabio,
I'm quite sure about
a Kern's post here where he said that there is a "not"
keyword for schedules. Have you tried something like the
bellow?
I think I was referring to a not operator such as ! However, I
must have been confused with the ! in the Messages destination
list. Bottom line: I don't think there is a not operator, and the
"not" in your schedule below isn't likely to work. However, in
including only the days/dates you want, you can effectively
exclude certain combinations.
The following should accomplish what you want:
Schedule {
...
Run = level=Full sun-fri on 1 at 2:30
...
}
Although I cannot guarantee it, this schedule should run jobs only
on Sunday through Friday (i.e. not Saturday) and on the first day
of the month.
Try the command:
status schedule days=500
I get:
*status schedule days=500
Scheduled Jobs:
Level Type Pri Scheduled Job Name
Schedule
=====================================================================================
Full Backup 10 Sun 03-Aug 02:30 NightlySave
TestSched
Full Backup 10 Tue 05-Aug 02:30 NightlySave
TestSched
Full Backup 10 Wed 03-Sep 02:30 NightlySave
TestSched
Full Backup 10 Fri 05-Sep 02:30 NightlySave
TestSched
Full Backup 10 Fri 03-Oct 02:30 NightlySave
TestSched
Full Backup 10 Sun 05-Oct 02:30 NightlySave
TestSched
Full Backup 10 Mon 03-Nov 02:30 NightlySave
TestSched
Full Backup 10 Wed 05-Nov 02:30 NightlySave
TestSched
Full Backup 10 Wed 03-Dec 02:30 NightlySave
TestSched
Full Backup 10 Fri 05-Dec 02:30 NightlySave
TestSched
Full Backup 10 Mon 05-Jan 02:30 NightlySave
TestSched
Full Backup 10 Tue 03-Feb 02:30 NightlySave
TestSched
Full Backup 10 Thu 05-Feb 02:30 NightlySave
TestSched
Full Backup 10 Tue 03-Mar 02:30 NightlySave
TestSched
Full Backup 10 Thu 05-Mar 02:30 NightlySave
TestSched
Full Backup 10 Fri 03-Apr 02:30 NightlySave
TestSched
Full Backup 10 Sun 05-Apr 02:30 NightlySave
TestSched
Full Backup 10 Sun 03-May 02:30 NightlySave
TestSched
Full Backup 10 Tue 05-May 02:30 NightlySave
TestSched
Full Backup 10 Wed 03-Jun 02:30 NightlySave
TestSched
Full Backup 10 Fri 05-Jun 02:30 NightlySave
TestSched
Full Backup 10 Fri 03-Jul 02:30 NightlySave
TestSched
Full Backup 10 Sun 05-Jul 02:30 NightlySave
TestSched
Full Backup 10 Mon 03-Aug 02:30 NightlySave
TestSched
Full Backup 10 Wed 05-Aug 02:30 NightlySave
TestSched
Full Backup 10 Thu 03-Sep 02:30 NightlySave
TestSched
Full Backup 10 Mon 05-Oct 02:30 NightlySave
TestSched
Full Backup 10 Tue 03-Nov 02:30 NightlySave
TestSched
Full Backup 10 Thu 05-Nov 02:30 NightlySave
TestSched
====
Best regards,
Kern
Schedule {
Name = ...
Run = Level=Full
sat at xx:xx not on 1 at xx:xx
}
Regards,
Ana
------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|