fedora wrote:
Hi guys,
Every end of month I have to recover databases to burn it into DVD. The
command that I used is amrecover. For amrecover I have to give an input so
that amanda can recover databases (interactive). It will be wasting my time
to recover one by one for the clients and I have to wait until all finished.
I have to setdate, sethost, setdisk and so on. Is there any specific amanda
commands that will run restore or recover when we call the function in
crontab automatically (non interactive)? Just my 2 cents.
If you need something that's typically interactive to run automatically
and unattended, then Expect is often a good solution. I've used it to
drive interactive menu systems to extract data from library catalogs
using cron. The trick is that you have to know what to expect. As long
as the interaction is consistent, and you can anticipate alternate
results, you can script it.
http://expect.nist.gov
Been around a long time, and there's an O'Reilly book on it.
---------------
Chris Hoogendyk
-
O__ ---- Systems Administrator
c/ /'_ --- Biology & Geology Departments
(*) \(*) -- 140 Morrill Science Center
~~~~~~~~~~ - University of Massachusetts, Amherst
<[EMAIL PROTECTED]>
---------------
Erdös 4