Bacula-users

Re: [Bacula-users] Back-up Schedules not being carried over to console

2017-04-14 12:48:25
Subject: Re: [Bacula-users] Back-up Schedules not being carried over to console
From: Laurent ALONSO <laualo AT gmail DOT com>
To: Mark Gregory <7605mgregory AT gmail DOT com>
Date: Fri, 14 Apr 2017 18:47:12 +0200
Hi
Why 3 Jobdefs, you only need 1.
You can put in your job resource :
Job{
Name = mark-LD800-fd
...
Schedule = "DaytimeWkDay"
...
}

Best regards

http://www.bacula.org/5.2.x-manuals/en/main/main/Configuring_Director.html#SECTION001430000000000000000
The JobDefs Resource

The JobDefs resource permits all the same directives that can appear in a Job resource. However, a JobDefs resource does not create a Job, rather it can be referenced within a Job to provide defaults for that Job. This permits you to concisely define several nearly identical Jobs, each one referencing a JobDefs resource which contains the defaults. Only the changes from the defaults need to be mentioned in each Job.


2017-04-14 12:18 GMT+02:00 Mark Gregory <7605mgregory AT gmail DOT com>:
I am using Linux Cinnamon Mint 18.1, and recently installed / set up Bacula version 7.0.5 using Synaptic.  I have it configured, and have backed up three Client computers in my local network without issues.

I made a new schedule called "DaytimeWkDay" to back up three other computers in my possession at shortly after noon (12:35 PM) that are not running 24 hours a day.  I added the schedules to the subject Client machines in bacula-dir.conf, but the "Status, Scheduled" in console still shows "WeeklyCycle" for these machines.

How do I get the console to run these machines on the DaytimeWkDay schedule?

Below are some relevant settings from bacula-dir.conf:

Client Definitions for subject Client machines:
Client {
  Name = mark-LD800-fd
  Address = 192.168.1.26
  FDPort = 9102
  Catalog = MyCatalog
  Password = "password deleted"
  File Retention = 60 days
  Job Retention = 6 months
  AutoPrune = yes
}

Client {
  Name = kristi-Gw-fd
  Address = 192.168.1.101
  FDPort = 9102
  Catalog = MyCatalog
  Password = "password deleted"
  File Retention = 60 days
  Job Retention = 6 months
  AutoPrune = yes
}

Client {
  Name = mark-Inspiron-3537-fd
  Address = 192.168.1.25
  FDPort = 9102
  Catalog = MyCatalog
  Password = "password deleted"
  File Retention = 60 days
  Job Retention = 6 months
  AutoPrune = yes
}


Schedule Definition:
Schedule {
  Name = "DaytimeWkDay"
  Run = Level=Full Pool=DtFull 1st mon at 12:35
  Run = Level=Differential Pool=DtDiff 2nd-5th mon at 12:35
  Run = Level=Incremental Pool=DtDaily mon-fri at 12:35
}


Job Definitions for the subject Client machines:
JobDefs {
  Name = "mark-LD800"
  Type = Backup
  Level = Incremental
  Client = mark-LD800-fd
  FileSet = "Full Set"
  Schedule = "DaytimeWkDay"
  Storage = File1
  Messages = Standard
  Pool = File
  SpoolAttributes = yes
  Priority = 10
  Write Bootstrap = "/var/lib/bacula/%c.bsr"
}

JobDefs {
  Name = "kristi-Gw-fd"
  Type = Backup
  Level = Incremental
  Client = krists-Gw-fd
  FileSet = "Full Set"
  Schedule = "DaytimeWkDay"
  Storage = File1
  Messages = Standard
  Pool = File
  SpoolAttributes = yes
  Priority = 10
  Write Bootstrap = "/var/lib/bacula/%c.bsr"
}

JobDefs {
  Name = "mark-Inspiron-3537-fd"
  Type = Backup
  Level = Incremental
  Client = mark-Inspiron-3537-fd
  FileSet = "Full Set"
  Schedule = "DaytimeWkDay"
  Storage = File1
  Messages = Standard
  Pool = File
  SpoolAttributes = yes
  Priority = 10
  Write Bootstrap = "/var/lib/bacula/%c.bsr"
}


Console "Status" / "Scheduled" data for subject Client machines AFTER the above settings were saved and Director restarted:
Differential   Backup    10  Sun 16-Apr 23:05   mark-LD800         WeeklyCycle
Incremental    Backup    10  Tue 11-Apr 23:05   mark-LD800         WeeklyCycle
Incremental    Backup    10  Wed 12-Apr 23:05   mark-LD800         WeeklyCycle
Incremental    Backup    10  Thu 13-Apr 23:05   mark-LD800         WeeklyCycle
Incremental    Backup    10  Fri 14-Apr 23:05   mark-LD800         WeeklyCycle
Incremental    Backup    10  Sat 15-Apr 23:05   mark-LD800         WeeklyCycle
Incremental    Backup    10  Mon 17-Apr 23:05   mark-LD800         WeeklyCycle
Incremental    Backup    10  Tue 18-Apr 23:05   mark-LD800         WeeklyCycle
Incremental    Backup    10  Wed 19-Apr 23:05   mark-LD800         WeeklyCycle
Incremental    Backup    10  Thu 20-Apr 23:05   mark-LD800         WeeklyCycle
Differential   Backup    10  Sun 16-Apr 23:05   mark-OP745         WeeklyCycle
Incremental    Backup    10  Tue 11-Apr 23:05   mark-OP745         WeeklyCycle
Incremental    Backup    10  Wed 12-Apr 23:05   mark-OP745         WeeklyCycle
Incremental    Backup    10  Thu 13-Apr 23:05   mark-OP745         WeeklyCycle
Incremental    Backup    10  Fri 14-Apr 23:05   mark-OP745         WeeklyCycle
Incremental    Backup    10  Sat 15-Apr 23:05   mark-OP745         WeeklyCycle
Incremental    Backup    10  Mon 17-Apr 23:05   mark-OP745         WeeklyCycle
Incremental    Backup    10  Tue 18-Apr 23:05   mark-OP745         WeeklyCycle
Incremental    Backup    10  Wed 19-Apr 23:05   mark-OP745         WeeklyCycle
Incremental    Backup    10  Thu 20-Apr 23:05   mark-OP745         WeeklyCycle
Differential   Backup    10  Sun 16-Apr 23:05   kristi-Gw          WeeklyCycle
Incremental    Backup    10  Tue 11-Apr 23:05   kristi-Gw          WeeklyCycle
Incremental    Backup    10  Wed 12-Apr 23:05   kristi-Gw          WeeklyCycle
Incremental    Backup    10  Thu 13-Apr 23:05   kristi-Gw          WeeklyCycle
Incremental    Backup    10  Fri 14-Apr 23:05   kristi-Gw          WeeklyCycle
Incremental    Backup    10  Sat 15-Apr 23:05   kristi-Gw          WeeklyCycle
Incremental    Backup    10  Mon 17-Apr 23:05   kristi-Gw          WeeklyCycle
Incremental    Backup    10  Tue 18-Apr 23:05   kristi-Gw          WeeklyCycle
Incremental    Backup    10  Wed 19-Apr 23:05   kristi-Gw          WeeklyCycle
Incremental    Backup    10  Thu 20-Apr 23:05   kristi-Gw          WeeklyCycle

Thank you for your help.

Mark Gregory

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>