Bacula-users

Re: [Bacula-users] Monthly backup on 1st day except on saturdays

2014-07-14 18:26:38
Subject: Re: [Bacula-users] Monthly backup on 1st day except on saturdays
From: Kern Sibbald <kern AT sibbald DOT com>
To: "Ana Emília M. Arruda" <emiliaarruda AT gmail DOT com>
Date: Sat, 12 Jul 2014 18:03:35 +0200
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" <fabior AT unicamp DOT 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 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