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

Merry Christmas!
Tilman

-- 
Tilman Schmidt
Phoenix Software GmbH
Bonn, Germany

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to