Re: [Bacula-users] Job canceling tip

2013-03-05 Thread Dan Langille
On Mar 5, 2013, at 5:44 PM, Luis H. Forchesatto wrote: > If its all about cancel the jobs in queue, why don't you guys simply restart > bacula-dir? These tips are about canceling SOME jobs. Some specific jobs. Not all jobs. > Restarting makes bacula to cancel all jobs queued, no matter if the

Re: [Bacula-users] Job canceling tip

2013-03-05 Thread Paul Mather
On Mar 5, 2013, at 9:54 AM, Dan Langille wrote: > On 2013-03-04 04:42, Konstantin Khomoutov wrote: >> On Mon, 4 Mar 2013 08:45:05 +0100 >> Geert Stappers wrote: >> >> [...] >>> Thank you for the tip. I want to share another. >>> It is about canceling multiple jobs. Execute from shell >>> >>>

Re: [Bacula-users] Job canceling tip

2013-03-05 Thread Dan Langille
On 2013-03-05 11:17, Paul Mather wrote: > On Mar 5, 2013, at 9:54 AM, Dan Langille wrote: > >> On 2013-03-04 04:42, Konstantin Khomoutov wrote: >>> On Mon, 4 Mar 2013 08:45:05 +0100 >>> Geert Stappers wrote: >>> >>> [...] Thank you for the tip. I want to share another. It is about cance

Re: [Bacula-users] Job canceling tip

2013-03-05 Thread Konstantin Khomoutov
On Tue, 05 Mar 2013 09:54:06 -0500 Dan Langille wrote: [...] > > A portable way to do the same is to use the `seq` program > > > > for i in `seq 17 21`; do ... > > > > or to maintain an explicit counter: > > > > i=17 > > while [ $i -le 21 ]; do ...; i=$(($i+1)); done > > Then I tried this approa

Re: [Bacula-users] Job canceling tip

2013-03-05 Thread Dan Langille
On 2013-03-04 04:42, Konstantin Khomoutov wrote: > On Mon, 4 Mar 2013 08:45:05 +0100 > Geert Stappers wrote: > > [...] >> Thank you for the tip. I want to share another. >> It is about canceling multiple jobs. Execute from shell >> >>for i in {17..21} ; do echo cancel yes jobid=404${i} | bcons

Re: [Bacula-users] Job canceling tip

2013-03-04 Thread Konstantin Khomoutov
On Mon, 4 Mar 2013 08:45:05 +0100 Geert Stappers wrote: [...] > Thank you for the tip. I want to share another. > It is about canceling multiple jobs. Execute from shell > >for i in {17..21} ; do echo cancel yes jobid=404${i} | bconsole ; > done > > Five jobs, 40417-40421, will be canceled.

Re: [Bacula-users] Job canceling tip

2013-03-04 Thread Geert Stappers
Op 2013-03-04 om 02:44 schreef Dan Langille: > I discovered this clever idea this morning. Say you want to cancel a few > jobs. Here's an easy way: > > *cancel > Select Job: > 1: JobId=122926 Job=gelt.2013-03-03_05.55.03_02 > 2: JobId=122927 Job=gelt_freshports_dev.2013-03-03_05.55.03