Re: [Bacula-users] admin job - run directive

2010-02-08 Thread Markus Falb
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 07/02/2010 13:01, Thomas Mueller wrote:
 Am Sat, 06 Feb 2010 20:47:02 +0100 schrieb Markus Falb:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1


 i tried a admin job:

 job {
  ...
  type = admin
  ...
  run = jobX
  run = jobY
  ...
 }
 
 maybe this works:
 
 Job {
 ...
   type = admin
 RunScript {
 RunsWhen = Before
 FailJobOnError = No
 Console = run job=xyz yes
 }
 }
 
 
 http://bacula.org/5.0.x-manuals/en/main/main/Configuring_Director.html#6938

According to this link the run command is not supported.

...snippel
You can use following console command : delete, disable, enable,
estimate, list, llist, memory, prune, purge, reload, status, setdebug,
show, time, trace, update, version, .client, .jobs, .pool, .storage.
snappel...

- -- 
best regards, thank you
markus
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAktwtm8ACgkQYoWFBIJE9eW6YACfZk1nEpBm1PJ9YOeW7MgfjvjS
2XQAoJMkoOFnlbjoeXPeA5le+fpnUXa3
=l5YH
-END PGP SIGNATURE-


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] admin job - run directive

2010-02-07 Thread Thomas Mueller
Am Sat, 06 Feb 2010 20:47:02 +0100 schrieb Markus Falb:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 
 i tried a admin job:
 
 job {
   ...
   type = admin
   ...
   run = jobX
   run = jobY
   ...
 }

maybe this works:

Job {
...
type = admin
RunScript {
RunsWhen = Before
FailJobOnError = No
Console = run job=xyz yes
}
}


http://bacula.org/5.0.x-manuals/en/main/main/Configuring_Director.html#6938

- Thomas


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] admin job - run directive

2010-02-06 Thread Markus Falb
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


i tried a admin job:

job {
...
type = admin
...
run = jobX
run = jobY
...
}

what does work (but is much more error prone) is:

job {
...
type = admin
...
run after job = /bin/bash -c /bin/echo 'run job=jobX yes' \|
/usr/sbin/bconsole
run after job = /bin/bash -c /bin/echo 'run job=jobY yes' \|
/usr/sbin/bconsole
...
}

Why is that. Are not all job Directives supposed to work with admin jobs ?

- -- 
best regards,
markus
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkttxzYACgkQYoWFBIJE9eVrIgCgnaNCvI9hWn5jfsV/NJMe5l0t
m+8An1v79BxYHmT4ekxhH04t3HvWKKnx
=2+Qi
-END PGP SIGNATURE-


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] admin job - run directive

2010-02-06 Thread Markus Falb
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/02/2010 20:47, Markus Falb wrote:

 what does work (but is much more error prone) is:
 
 job {
   ...
   type = admin
   ...
   run after job = /bin/bash -c /bin/echo 'run job=jobX yes' \|
 /usr/sbin/bconsole
   run after job = /bin/bash -c /bin/echo 'run job=jobY yes' \|
 /usr/sbin/bconsole
   ...
 }

Not that i was too eager to prove why it could be error prone. I pasted
a not working version of the run after jobs but it was not by intention.
Welcome to quoting hell ;-)

run after job = /bin/bash -c \/bin/echo 'run job=jobX yes' \|
/usr/sbin/bconsole\

- -- 
best regards,
markus
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkttzJEACgkQYoWFBIJE9eXIJgCgjnCYu90PTyyXYtGUIEIFXl4U
B1EAmQEdIS96y11wHKcnlrGKjhKNwYMY
=2zBl
-END PGP SIGNATURE-


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] admin job - run directive

2010-02-06 Thread Markus Falb
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/02/2010 20:47, Markus Falb wrote:
 
 i tried a admin job:
 
 job {
   ...
   type = admin
   ...
   run = jobX
   run = jobY
   ...
 }
 

I failed to say that above does not work. The Jobs does not run.
Only the other variant with run after job (below) does work.

 what does work (but is much more error prone) is:
 
 job {
   ...
   type = admin
   ...
   run after job = /bin/bash -c /bin/echo 'run job=jobX yes' \|
 /usr/sbin/bconsole
   run after job = /bin/bash -c /bin/echo 'run job=jobY yes' \|
 /usr/sbin/bconsole
   ...
 }
 
 Why is that. Are not all job Directives supposed to work with admin jobs ?
 

- -- 
best regards,
markus
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAktt0WQACgkQYoWFBIJE9eW84ACdGY8zSJ/Grt0cKBHL2t0dJ1mG
7oEAn1ro5/jBBmY5vAOgLdxRpv64V57X
=IfG0
-END PGP SIGNATURE-


--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users