Re: amanda non interactive or automated restore/recover

2008-01-03 Thread Gerrit A. Smit -TI-
Op wo 02jan08 om 21:02 schreef fedora:

> 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. 

hostname.diskname.datestamp.dumplevel

are the filenames made by the non-interactive form of the command

amrestore

to extract backup images from an Amanda tape

(my 3rd and 4th cent)

Gerrit


Re: amanda non interactive or automated restore/recover

2008-01-03 Thread Chris Hoogendyk



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




Re: amanda non interactive or automated restore/recover

2008-01-03 Thread Mike . Hurley
> If you need something that's typically interactive to run automatically 
> and unattended, then Expect is often a good solution.

There is also a perl-Expect module; so you don't *have* to learn another 
scripting language, just wrap it up in perl.
http://search.cpan.org/~rgiersig/Expect/

+--+
  Michael Hurley
  Webmaster/System Administrator
  University of Connecticut School of Law
+--+