cancel
Showing results for 
Search instead for 
Did you mean: 

Backup Exec restore script

Alex_Zn
Level 6
Partner Accredited

Hi!

I have a problem when try to create restore job using bemcmd

 

C:\Program Files\Symantec\Backup Exec>bemcmd.exe -v -c  -o90 -fscript.txt

Backup Exec Command Line Applet version 13.0.5204.1225.
Copyright (c) 2011 Symantec Corporation.  All rights reserved.

Connecting to local media server...
Connected.
Reading script file...
Inserting schedule...
Inserting job...
ERROR CODE: 1168
ERROR: Element not found.

Disconnecting from server...
Disconnected.
RETURN VALUE: -1

Here is script.txt

=======================

[General]

JOB_TYPE=Restore
JOB_NAME=RecoveryTestJob

[Restore_Options]

SHARE_REDIRECT_DRIVE=\\BE2010\C:
SHARE_REDIRECT_PATH=\test1

[Selections]

//JOBHISTORY_GUID={12104A7D-9196-41B7-818F-B97947B9F2C0}

SELECTION1=\\LTS-001-VS\C:\install\ReportViewer.exe
START_DATE=08/15/2012
END_DATE=08/15/2013

[Schedule]

SCHED_EFFECTIVE=08/11/2013
SCHED_STARTTIME=03:00:00
SCHED_ENDTIME=04:00:00
SCHED_RESTART_INTERVAL=01:00:00
SCHED_REPEAT_INTERVAL=1
HOLD=1
=======================

When i leave "JOBHISTORY_GUID" restore job creates with no problem, but it includes all files that was backed up during specific backup job, but i need only restore one file, so i have commented JOBHISTORY_GUID and created SELECTION1 and now i have error message.

1 ACCEPTED SOLUTION

Accepted Solutions

pkh
Moderator
Moderator
   VIP    Certified
2 REPLIES 2

pkh
Moderator
Moderator
   VIP    Certified

Alex_Zn
Level 6
Partner Accredited

Thanks Pkh, this link was very helpful, because you aim the Direction where to search problem:

I did not setup domain id, my server not in a AD domain because there is no necesiety. But i have set up primary DNS suffix on media server, this is has solved my problem.

Here is example of restore script that is worked fine for me:

[General]

JOB_TYPE=Restore
JOB_NAME=RecoveryTestJob

[Restore_Options]


SHARE_REDIRECT_DRIVE=\\BE2010\C:
SHARE_REDIRECT_PATH=\test1

[Selections]

SELECTION1=\\LTS-001-VS\C:\Program Files\IBM\Lotus\Domino\data\mail\ppet.nsf

[Schedule]

HOLD=1