Bacula-users

Re: [Bacula-users] lots of copy jobs fail suddenly (5.2.12)

2012-12-27 05:03:31
Subject: Re: [Bacula-users] lots of copy jobs fail suddenly (5.2.12)
From: Uwe Schuerkamp <uwe.schuerkamp AT nionex DOT net>
To: Tilman Schmidt <t.schmidt AT phoenixsoftware DOT de>
Date: Thu, 27 Dec 2012 11:00:11 +0100
On Mon, Dec 24, 2012 at 06:45:51PM +0100, Tilman Schmidt wrote:
> Am 24.12.2012 10:51, schrieb Uwe Schuerkamp:
> > As for my previous question on how to run a job using bconsole,
> > passing pool, storage and other params it works like this: 
> > (echo run catalog=MyCatalog job=copy-single
> > storage=FileStorage_denioXXXX_full pool=Online_denioXXXX_full; echo
> > yes) | bconsole 
> > 
> > I guess the "yes" can be scripted in a nicer way [...]
> 
> The "run" command accepts "yes" as an argument to indicate it
> should not prompt for confirmation, so you can it do slightly
> more elegantly like this:
> 
> echo run catalog=MyCatalog job=copy-single \
>  storage=FileStorage_denioXXXX_full pool=Online_denioXXXX_full yes | \
>  bconsole
> 

thanks Tilman, a nice improvement to an otherwise really ugly script
;-) 

I hope you had some nice holidays, too. 

All the best Uwe 

-- 
NIONEX --- Ein Unternehmen der Bertelsmann SE & Co. KGaA



------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>