RE: [Bacula-users] Run all jobs
--On Thursday, April 14, 2005 11:38 PM -0500 Matt Bettinger <[EMAIL PROTECTED]> wrote: > Thanks for the tips Dan and Karl. > One more question: > >> You can create a shell script to do this. The format would be >> something >> like the following. Be careful of possible email line wrapping. >> >> Karl Cunningham >> >> >> #!/bin/bash >> >> #Run this script to do a FULL Backup >> ./bconsole -c ./bconsole.conf << END_OF_COMMANDS >> @# This assumes the jobs have been defined as full backups. >> @# Discard prior messages. They have been logged anyway >> @output /dev/null >> messages > > What are the @ symbols for in the script example? I was under the > impression that @ was used for computations? Matt -- The @ is for commands executed directly by the console, such as '@sleep' to insert a delay. See http://www.bacula.org/rel-manual/Bacula_Console.html#SECTION000337000 Karl --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Bacula-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-users
RE: [Bacula-users] Run all jobs
On Thu, 14 Apr 2005, Matt Bettinger wrote: Thanks for the tips Dan and Karl. One more question: [snip] #Run this script to do a FULL Backup ./bconsole -c ./bconsole.conf << END_OF_COMMANDS @# This assumes the jobs have been defined as full backups. @# Discard prior messages. They have been logged anyway @output /dev/null messages What are the @ symbols for in the script example? I was under the impression that @ was used for computations? They are commands to the bacula console program, the script sends /everything/ from the line after << END_OF_COMMANDS, until a line that contains 'END_OF_COMMANDS' on it's own, this is called a 'here document' More info on the @ commands here:- http://www.bacula.org/rel-manual/Bacula_Console.html#SECTION000337000 and here documents, erm, here. :) :- http://www.shu.ac.uk/schools/cms/teaching/ps/unix/heredocs.html Cheers, Ian --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Bacula-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-users
RE: [Bacula-users] Run all jobs
Thanks for the tips Dan and Karl. One more question: > You can create a shell script to do this. The format would be > something > like the following. Be careful of possible email line wrapping. > > Karl Cunningham > > > #!/bin/bash > > #Run this script to do a FULL Backup > ./bconsole -c ./bconsole.conf << END_OF_COMMANDS > @# This assumes the jobs have been defined as full backups. > @# Discard prior messages. They have been logged anyway > @output /dev/null > messages What are the @ symbols for in the script example? I was under the impression that @ was used for computations? Thanks again. -mb --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click ___ Bacula-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Run all jobs
--On Thursday, April 14, 2005 3:07 PM -0500 Matt Bettinger <[EMAIL PROTECTED]> wrote: > Hi, > > Sorry if this is somewhere in the FAQ but I searched and didn't find a > reference to this question. > > How would I kick off all jobs for all clients? > > I restarted my bacula server box ( FreeBSD ) and my startup script did > not work correctly. Now, I have a bunch of client jobs that I would > like to run. I know I can run them using the 'run' command but I prefer > not to do that for EACH client. > > Hope this make some sense? > > Thanks! > > -mb You can create a shell script to do this. The format would be something like the following. Be careful of possible email line wrapping. Karl Cunningham #!/bin/bash #Run this script to do a FULL Backup ./bconsole -c ./bconsole.conf << END_OF_COMMANDS @# This assumes the jobs have been defined as full backups. @# Discard prior messages. They have been logged anyway @output /dev/null messages @# Back to console @output @# @# now start eveyone. They should run on their own. @# @sleep 5 @#Jobs for Priority: 11 run job=mjk1 level=full yes run job=osmdb level=full yes ... ... [other concurrent jobs listed here] ... run job=test1 level=full yes @# @sleep 5 @#Jobs for Priority: 12 run job=backsrv level=full yes @sleep 5 @# Back up the Catalog (priority 13) run job=catalog level=full yes @# END_OF_COMMANDS --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Bacula-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Run all jobs
Matt Bettinger wrote: Hi, Sorry if this is somewhere in the FAQ but I searched and didn't find a reference to this question. How would I kick off all jobs for all clients? I restarted my bacula server box ( FreeBSD ) and my startup script did not work correctly. Now, I have a bunch of client jobs that I would like to run. I know I can run them using the 'run' command but I prefer not to do that for EACH client. Hope this make some sense? Thanks! -mb --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click ___ Bacula-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-users hrm wondering why I recieved this email 10 times? -- Tom Morgan [EMAIL PROTECTED] --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Bacula-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Run all jobs
On 14 Apr 2005 at 15:07, Matt Bettinger wrote: > Sorry if this is somewhere in the FAQ but I searched and didn't find a > reference to this question. > > How would I kick off all jobs for all clients? I do that manually: run yes job=ABC then press uparrow, and manually change ABC to DEF. You can also run this as a script. Ask if you don't know how. -- Dan Langille : http://www.langille.org/ BSDCan - The Technical BSD Conference - http://www.bsdcan.org/ NEW brochure available at http://www.bsdcan.org/2005/advocacy/ --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Bacula-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bacula-users
