On 01/15/17 16:34, Kern Sibbald wrote:
> Hello Phil,
>
> It is a bit late here so I will look at all your output tomorrow, but if
> you have the patience, go to:
>
> <bacula>/src/dird/ua_run.c
> then at line 1074, you should have the following lines of code:
>
> /* Not a good idea to start a job with the Scratch pool */
> if (rc.pool && strcmp(rc.pool->name(), NT_("Scratch")) == 0) {
> ua->send_msg(_("Pool \"Scratch\" not valid.\n"));
> return false;
> }
>
> Just delete all those lines (or if you want, only the "return false;"),
> but be careful to leave the next line, which
> reads:
>
> return true;
>
> ===
>
> That should resolve your problem.
That does indeed resolve the problem. I've attached my exact patch.
--
Phil Stracchino
Babylon Communications
ph...@caerllewys.net
p...@co.ordinate.org
Landline: 603.293.8485
--- src/dird/ua_run.c.orig 2016-09-21 05:58:36.000000000 -0400
+++ src/dird/ua_run.c 2017-01-15 18:17:38.963495990 -0500
@@ -1069,15 +1069,16 @@
*/
if (rc.ignoreduplicatecheck_set) {
jcr->IgnoreDuplicateJobChecking = rc.ignoreduplicatecheck;
}
- /* Not a good idea to start a job with the Scratch pool */
- if (rc.pool && strcmp(rc.pool->name(), NT_("Scratch")) == 0) {
+ /* Probably not a good idea to run a backup job to the Scratch pool
+ However, this is NOT a good way to accomplish that. */
+ /* if (rc.pool && strcmp(rc.pool->name(), NT_("Scratch")) == 0) {
ua->send_msg(_("Pool \"Scratch\" not valid.\n"));
return false;
- }
+ } */
return true;
}
static void select_where_regexp(UAContext *ua, JCR *jcr)
{
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users