The FreeBSD Diary

The FreeBSD Diary (TM) Remember
I remember
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]

Scripts / handy tips
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 bulk cancelling of Bacula jobs
Author: Dan 
Date:   01-02-11 02:41

Sometimes you need to cancel a bunch of Bacula jobs. This might help get you started:

echo 'status dir' | bconsole | grep running | awk '{print "cancel jobid="$1}' | bconsole

This will cancel all running jobs.

You may which to change running to execution or waiting, depending on various job status.

This isn't very useful if you have a few jobs queued. But if you have 300 jobs queued, it can help.

--
Webmaster

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 bulk cancelling of Bacula jobs   new
Dan 01-02-11 02:41 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org