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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File Restore from Command Line (or other means) Using Backup Exec

Status
Not open for further replies.

RogerRa

Programmer
Jan 24, 2006
3
US
I'm a complete backup exec newbie.

I'm using version 10 rev 5484.

I can select a specific file to restore from Edit:Search Catalogs. I would like to be able to do the same thing from a command line, an SDK, or whatever.

There are two steps to the problem: 1) Find out what files are out there, and 2) Recover one or more files.

To find out what files are out there, i'm using

bemcmd -o69 -i -j -l<filename>

to get media IDs. This works fine.

Then, to find out what files are on a given set of media, I'm the standard script:


[General]
JOB_TYPE=Catalog
JOB_NAME=My Job name
SERVER=DEV-3-BILL
[Catalog_Options]
MEDIA_ID={00000009-0004-0000-0000-000000000000}
[Schedule]
RUN_IMMEDIATE=1


obviously the MEDIA_ID will vary, depending on the output from the first command.

The script is executed using this command:
bemcmd -o90 -v -f<scriptname> -l<logto>

However, when I execute that script, I get:

(01/24/06 08:09:16):"C:\Program Files\VERITAS\Backup Exec\NT\bemcmd" -o90 -v -f"D:\AssetRetrieval\CatalogScript01.txt" -l"d:\AssetRetrieval\TestOutput"
Connecting to media server '\\DEV-3-BILL'...
Connected.
Reading script file...
Inserting script...
ERROR performing operation: '-536837669'.
Disconnecting from server...
Disconnected.
RETURN VALUE: -1



which is a bit of a disappointment.


Can anyone point me in the right direction?

Thanks!
 
Is it a policy based backup your running the restore from
Try upgraded to 10.1 its free and may be fixed.

 
Thanks for your reply, Steve.

The restore will be any random file the user selects. Our application keeps a list of files. A given file will either exist on a server, or will have been backed up. If the file does not exist on the server, we wish to issue a command to backup exec to retrieve the file.

I don't know backup exec well enough to know what a policy based backup is, but superficially it doesn't sound like what we want.

 
What your wanting is something backup exec is not designed to do. Your looking for something like storagexec.

if its a user backup of a workstation take a look at the DLO client
 
I believe backup exec can retreive a single file, just not from the command line.

That is to say, if you use Edit->Search Catalogs, then press 'Find Now' on the dialog box, you can see a list of files and select one or more to restore.

However, what we need to do is the same action, but again programatically rather than through the BE user interface.

Additionally, our customers use Backup Exec so, AFAIK, we are stuck with it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top