I'm attempting to do a Backup Copy Job on BareOS 16.2 from a Pool on my 
Director to a Storage Daemon.

When I run the job manually it works.

But when I run the job from a schedule, though the control job appears in the 
list of jobs, it does not actually run any type "C" jobs which actually copy 
the volume to the Remote Storage daemon.

Here is the director attempting to run it via the scheduler (note the lack of 
any capital Cs in the type column):

Text
+-------+---------------------------+--------------+---------------------+------+-------+----------+------------+-----------+
| JobId | Name                      | Client       | StartTime           | Type 
| Level | JobFiles | JobBytes   | JobStatus |
+-------+---------------------------+--------------+---------------------+------+-------+----------+------------+-----------+
|     1 | webserver-job             | webserver-fd | 2017-01-02 22:00:00 | B    
| F     |    2,030 | 62,268,966 | T         |
|     6 | webserver-job             | webserver-fd | 2017-01-06 22:00:02 | B    
| F     |    2,030 | 62,269,082 | T         |
|     7 | webserver-monthly-CopyJob | NULL         | 2017-01-07 12:00:02 | c    
| F     |        0 |          0 | T         |
|     8 | webserver-daily-CopyJob   | NULL         | 2017-01-09 12:00:02 | c    
| F     |        0 |          0 | T         |
|    13 | webserver-job             | webserver-fd | 2017-01-13 22:00:02 | B    
| F     |    2,030 | 62,269,285 | T         |
|    14 | webserver-weekly-CopyJob  | NULL         | 2017-01-14 12:00:02 | c    
| F     |        0 |          0 | T         |
|    15 | webserver-daily-CopyJob   | NULL         | 2017-01-16 12:00:02 | c    
| F     |        0 |          0 | T         |
|    20 | webserver-job             | webserver-fd | 2017-01-20 22:00:02 | B    
| F     |    2,030 | 62,269,488 | T         |
|    21 | webserver-weekly-CopyJob  | NULL         | 2017-01-21 12:00:02 | c    
| F     |        0 |          0 | T         |
|    22 | webserver-daily-CopyJob   | NULL         | 2017-01-23 12:00:02 | c    
| F     |        0 |          0 | T         |
|    27 | webserver-job             | webserver-fd | 2017-01-27 22:00:02 | B    
| F     |    2,030 | 62,269,691 | T         |
|    28 | webserver-weekly-CopyJob  | NULL         | 2017-01-28 12:00:02 | c    
| F     |        0 |          0 | T         |
|    29 | webserver-daily-CopyJob   | NULL         | 2017-01-30 12:00:02 | c    
| F     |        0 |          0 | T         |
|    30 | webserver-job             | webserver-fd | 2017-01-30 22:00:02 | B    
| D     |    2,027 | 62,269,387 | T         |
|    31 | webserver-job             | webserver-fd | 2017-01-31 22:00:02 | B    
| D     |    2,027 | 62,269,416 | T         |
|    32 | webserver-job             | webserver-fd | 2017-02-01 22:00:02 | B    
| D     |    2,027 | 62,269,445 | T         |
|    33 | webserver-job             | webserver-fd | 2017-02-02 22:00:02 | B    
| D     |    2,027 | 62,269,474 | T         |
|    34 | webserver-job             | webserver-fd | 2017-02-03 22:00:02 | B    
| F     |    2,030 | 62,269,894 | T         |
|    35 | webserver-monthly-CopyJob | NULL         | 2017-02-04 12:00:02 | c    
| F     |        0 |          0 | T         |
|    36 | webserver-daily-CopyJob   | NULL         | 2017-02-06 12:00:02 | c    
| F     |        0 |          0 | T         |
|    37 | webserver-job             | webserver-fd | 2017-02-06 22:00:03 | B    
| D     |    2,027 | 62,269,590 | T         |
|    38 | webserver-job             | webserver-fd | 2017-02-07 22:00:02 | B    
| D     |    2,027 | 62,269,619 | T         |
|    39 | webserver-job             | webserver-fd | 2017-02-08 22:00:02 | B    
| D     |    2,027 | 62,269,648 | T         |
|    40 | webserver-job             | webserver-fd | 2017-02-09 22:00:02 | B    
| D     |    2,027 | 62,269,677 | T         |
|    41 | webserver-job             | webserver-fd | 2017-02-10 22:00:02 | B    
| F     |    2,030 | 62,270,097 | T         |
|    42 | webserver-weekly-CopyJob  | NULL         | 2017-02-11 12:00:02 | c    
| F     |        0 |          0 | T         |
+-------+---------------------------+--------------+---------------------+------+-------+----------+------------+-----------+
The output from one of these scheduled control job looks like the following:

Text
2017-02-04 12:00:02 bareOSdirector JobId 35: No JobIds found to copy.
 2017-02-04 12:00:02 bareOSdirector JobId 35: Bareos bareOSdirector 16.2.4 
(01Jul16):
  Build OS:               x86_64-pc-linux-gnu debian Debian GNU/Linux 7.0 
(wheezy)
  Current JobId:          35
  Current Job:            webserver-monthly-CopyJob.2017-02-04_12.00.00_14
  Catalog:                "MyCatalog" (From Default catalog)
  Start time:             04-Feb-2017 12:00:02
  End time:               04-Feb-2017 12:00:02
  Elapsed time:           0 secs
  Priority:               10
  Termination:            Copying -- no files to copy
However, if I go into the bconsole and just type run and select for instance 
webserver-monthly-CopyJob, 

I get a Termination: Copying OK and several type lowercase c jobs which copy 
over to the file daemon.

For the schedule I have the following:

Text
Schedule {
  Name = "webserver-monthly-cycle-schedule-copypool"
  run = pool="webserver-monthly-CopyPool" Full 1st Sat at 12:00
}
Text
Job {
  Name = "webserver-monthly-CopyJob"
  Type = Copy
  Messages = "standard"
  Storage = "File-webserver-monthly-CopyPool"
  Pool = "webserver-monthly-pool"
  Schedule = "webserver-monthly-cycle-schedule-copypool"
  SelectionType = PoolUncopiedJobs
}
Text
Storage {
  Name = "File-webserver-monthly-CopyPool"
  Address = "bareOSremoteSD"
  Password = "[md5]omitted"
  Device = "FileChgr-File-webserver-monthly-CopyPool"
  MediaType = "File4"
  MaximumConcurrentJobs = 5
  SddPort = 9103
}
Text
Pool {
  Name = "webserver-monthly-pool"
  PoolType = Backup
  LabelFormat = "webserver-monthly-volnum-${NumVols}"
  LabelType = "bareos"
  ActionOnPurge = Truncate
  MaximumVolumes = 12
  MaximumVolumeJobs = 100
  MaximumVolumeBytes = 10 g 
  VolumeRetention = 12 months 2 days 
  VolumeUseDuration = 2 days 22 hours 
  NextPool = "webserver-monthly-CopyPool"
  Storage = "webserver-monthly-fileStorage"
}
Text
Pool {
  Name = "webserver-monthly-CopyPool"
  PoolType = Backup
  LabelFormat = "${Pool}-${NumVols}"
  LabelType = "bareos"
  ActionOnPurge = Truncate
  MaximumVolumes = 100
  MaximumVolumeJobs = 100
  MaximumVolumeBytes = 50 g 
  Storage = "File-webserver-monthly-CopyPool"
}

Running it successfully from the bconsole looks like this:


*run
A job name must be specified.
The defined Job resources are:
     1: BaculaDirectorDirFiles
     2: webserver-job
     3: RestoreFiles
     4: webserver-daily-CopyJob
     5: BackupCatalog
     6: webserver-monthly-CopyJob
     7: MonthlyBackupCopy
     8: webserver-weekly-CopyJob
Select Job resource (1-8): 6
Run Copy job
JobName:       webserver-monthly-CopyJob
Bootstrap:     *None*
Read Storage:  webserver-monthly-fileStorage (From Pool resource)
Pool:          webserver-monthly-pool (From Job resource)
Write Storage: File-webserver-monthly-CopyPool (From Storage from Run NextPool 
override)
NextPool:      webserver-monthly-CopyPool (From unknown source)
JobId:         *None*
When:          2017-02-11 12:28:57
Catalog:       MyCatalog
Priority:      10
OK to run? (yes/mod/no): 
Does anyone know why it would copy volumes when manually and not copy volumes 
when run scheduled?



Reply Unsubscribe
     
Unsubscribe

Reply

-- 
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.

Reply via email to