Hello Ana and Kern!
Sorry for my late reply. Thanks about the answers!
With Kern's Schedule I can achieve what I wanted to do. But the Ana's
comment make me think about my initial idea... On my environment it's
better have both monthly and weekly full backups
Thanks for support!!
Regards
Fábio
Em 12-07-2014 16:52, Ana Emília M. Arruda escreveu:
Hi Kern,
Thank you a lot. I misunderstood another post. This way, when the 1st
day of month is a saturday, bacula will run the weekly cycle.
I prefer this situation:
Run = Level=Full Pool=Weekly 2nd-5th saturday at 2:30
Run = Level=Full Pool=Monthly 1st saturday at 2:30
This way we're sure about monthly backups (always first saturdays).
The other way, when 1st day of month is a saturday, you will not have
a monthly backup that month.
Regards,
Ana
On Sat, Jul 12, 2014 at 1:29 PM, Kern Sibbald <k...@sibbald.com
<mailto:k...@sibbald.com>> wrote:
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
On Fri, Jul 11, 2014 at 10:17 AM, "Fábio R. Medeiros"
<fab...@unicamp.br <mailto:fab...@unicamp.br>> wrote:
Hi guys,
I've defined the schedule with a weekly and monthly cycle.
The weekly
cycle runs a Full backup on saturdays and the monthly cycle
run a full
backup every 1st day of month.
Are there any way to tells Bacula to do NOT run the full
backup of
monthly cycle if the 1st day of the month is a saturday. If
so, it would
run the monthly full backup on sunday, the 2nd day of the
month...
Fabio
------------------------------------------------------------------------------
Open source business process management suite built on Java
and Eclipse
Turn processes into business applications with Bonita BPM
Community Edition
Quickly connect people, data, and systems into organized
workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
<mailto:Bacula-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/bacula-users
------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
<mailto:Bacula-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/bacula-users
------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
<mailto:Bacula-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/bacula-users
------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users