Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[b]direct recovery in a script[/b]

Status
Not open for further replies.

razvannw

Technical User
Jul 26, 2005
33
RO
I want to perform direct recovery in a script, It is posibile ?
The clasic recovery in script it’s working fine, but direct recovery direct me to intreractive “recover>” prompt.

Any one has and idée related to my problem?
 
??? what command are you using? I used to issue the recover command with the -R option and no prompt is displayed.

Cheers.

Chacal, Inc.[wavey]
 
recover -c <source_server> -R <destination_server> -iY <folder>
 
I think you might need the -a flag before the <folder> you want to restore, that disabled interactive prrompting and just starts the recover. You should also use the -d flag and relocate the data to a path you know will always exists. NetWorker will try to restore the data to the original path, and if you are directing the recover that path might not exists on the target server.

recover -iY -c <source_server> -R <destination_server> -d C:\temp -a <path to folder or file to restore>

Cheers!
Maverick
 
No result
"recover: '-a' is not valid with the '-R' option"
 
It looks as the program still waits for some input. So i modified the command

recover -iY ... drive:\directory < inputfile


and define 'inputfile' as follows:

add filename(s)
recover

This worked for me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top