Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

restore from command line

Created: 24 Dec 2012 • Updated: 25 Jan 2013 | 27 comments
This issue has been solved. See solution.
 
C:\Program Files\Veritas\NetBackup\bin>bprestore.exe -B  -L  /E/tmp/restore3.log
 -C dell-pc  -D dell-pc   -t 13 -s 12/16/2012 -e 12/16/2012  -R /C/Temp/Backup
-f /C/Temp/filelist.txt
The rename file C:\Temp\Backup is not accessible.
EXIT STATUS 144: invalid command usage
 
I am geting the Above error.
 
Master server:dell-pc
Client:dell -pc
 
 
Please let me know what all logs are required?

Comments 27 CommentsJump to latest comment

RamNagalla's picture

hi .

-R is for the rename list..

so your command should be like 

C:\Program Files\Veritas\NetBackup\bin>bprestore.exe -B  -L  /E/tmp/restore3.log
 -C dell-pc  -D dell-pc   -t 13 -s 12/16/2012 -e 12/16/2012  -R /C/Temp/Rename_list.txt
-f /C/Temp/filelist.txt
 
and keep  C/Temp/Backup  in file  /C/Temp/Rename_list.txt.
 
 so when you open the file /C/Temp/Rename_list.txt. entires should be like below.
chage <souce filename> to <destination name>
 
you can reffer the below tech note
http://www.symantec.com/business/support/index?page=content&id=TECH34216
 
Hope this helps..
 
Arun K's picture

Still getting the same error.

 
C:\Program Files\Veritas\NetBackup\bin>bprestore.exe -B  -L  /E/tmp/restore3.log
  -C dell-pc  -D dell-pc   -t 13 -s 12/16/2012 -e 12/16/2012  -R /C/Temp/Rename_
list.txt -f  /C/Temp/filelist.txt
The rename file C:\Temp\Rename_list.txt is not accessible.
EXIT STATUS 144: invalid command usage
 
RamNagalla's picture

so did you create the file C:\Temp\Rename_list.txt  ? (should be on the server from where you are running the command bprestore)

and what did you keep in this file?

could you share the screenshot of it?

Marianne's picture

Please show us from cmd the .txt filenames as well as contents of C:\Temp\Rename_list.txt.

C:\Temp> dir *.txt

C:\Temp> type Rename_list.txt

PS: We've been through this before?? 

https://www-secure.symantec.com/connect/forums/bprestore-command

https://www-secure.symantec.com/connect/forums/bprestore

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

Arun K's picture
 
 Directory of C:\Temp
 
12/24/2012  05:44 PM    <DIR>          .
12/24/2012  05:44 PM    <DIR>          ..
12/24/2012  05:17 PM                16 filelist.txt.txt
12/24/2012  06:07 PM                37 Rename_list.txt.txt
               2 File(s)             53 bytes
               2 Dir(s)  67,441,356,800 bytes free
 
C:\Temp>type Rename_list.txt.txt
/D/Netbackup to  /E/Netbackup
 
 
 
 
C:\Temp>dir
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
RamNagalla's picture

remove another .txt at the end of the file 

Rename_list.txt.txt ---->Rename_list.txt

even for filelist.txt.txt --->filelist.txt

and inside of the file it should be like below.

change /D/Netbackup to  /E/Netbackup

hope this helps.

Arun K's picture
 
C:\Program Files\Veritas\NetBackup\bin>bprestore.exe -B  -L  /E/tmp/restore3.log
  -C dell-pc  -D dell-pc   -t 13 -s 12/16/2012 -e 12/16/2012  -R /C/Temp/Rename_
list.txt -f  /C/Temp/filelist.txt
 
C:\Program Files\Veritas\NetBackup\bin>
 

No error in command this time.But job fails with error 5

Below are the error logs.

12/24/2012 6:23:30 PM - begin Restore
12/24/2012 6:23:32 PM - restoring image dell-PC_1355681471
12/24/2012 6:23:32 PM - requesting resource Fibre Transport
12/24/2012 6:23:33 PM - Warning nbjm(pid=2668) NBU status: 800, EMM status: Fibre Transport resources are not available  
12/24/2012 6:23:33 PM - Warning nbjm(pid=2668) NBU status: 800, EMM status: Fibre Transport resources are not available  
12/24/2012 6:23:36 PM - connecting
12/24/2012 6:23:44 PM - restored image dell-PC_1355681471 - (tar received an invalid argument(181)); restore time 00:00:12
12/24/2012 6:23:44 PM - Warning bprd(pid=1232) Restore must be resumed prior to first image expiration on 2/16/2013 11:41:11 PM
12/24/2012 6:23:44 PM - end Restore; elapsed time: 00:00:14
the restore failed to recover the requested files(5)
RamNagalla's picture

12/24/2012 6:23:44 PM - restored image dell-PC_1355681471 - (tar received an invalid argument(181)); restore time 00:00:12

do you have the E drive avaliable in  dell-pc?

Arun K's picture

Below are the restore log

Restore started 12/24/2012 18:23:28
 
18:23:35 (197.001) Restoring from image created 12/16/2012 11:41:11 PM
18:23:44 (197.001) ERR - error in rename line: change /D/Netbackup to  /E/Netbackup
18:23:44 (197.001) INF - EXIT STATUS 181: tar received an invalid argument
18:23:44 (197.001) Status of restore from image created 12/16/2012 11:41:11 PM = tar received an invalid argument
 
18:23:45 (197.xxx) INF - Status = the restore failed to recover the requested files.
 
RamNagalla's picture

18:23:44 (197.001) ERR - error in rename line: change /D/Netbackup to  /E/Netbackup

same question

do you have the E drive avaliable in  dell-pc?

Arun K's picture

YES.

 
E:\>dir
 Volume in drive E has no label.
 Volume Serial Number is D21C-031E
 
 Directory of E:\
 
12/21/2012  05:12 PM    <DIR>          BACKUP
09/18/2012  06:32 PM    <DIR>          Map
09/18/2012  06:32 PM    <DIR>          Messages
04/10/2007  05:08 PM         1,056,768 mfc71.dll
08/08/2003  06:15 PM            57,344 MFC71ENU.DLL
04/10/2007  05:08 PM         1,049,600 mfc71u.dll
03/18/2003  11:14 PM           499,712 msvcp71.dll
02/21/2003  07:42 AM           348,160 msvcr71.dll
09/18/2012  06:32 PM    <DIR>          Shared
12/24/2012  06:28 PM    <DIR>          tmp
               5 File(s)      3,011,584 bytes
               5 Dir(s)  206,327,410,688 bytes free
 
E:\>hostname
dell-PC
RamNagalla's picture

hoo.i just misread this..

18:23:44 (197.001) ERR - error in rename line: change /D/Netbackup to  /E/Netbackup

error in rename line.

do you have blank spaces or blank lines in the Rename_list.txt

Arun K's picture

 change /D/Netbackup to /E/Netbackup

Then i hit enter and save

Nicolai's picture

How to run bprestore from the command line to restore information to an alternate path and/or client

http://www.symantec.com/docs/TECH21196

Try adding a / to /D/Netbackup so the path becomme /D/Netbackup/

Assumption is the mother of all mess ups.

If this post answered your'e qustion -  Please mark as a soloution.

Arun K's picture

Done.

               
 
C:\Temp>type Rename_list.txt
change /D/Netbackup/ to /E/Netbackup
 
Still the same error
RamNagalla's picture

please check if you  have /D/Netbackup/ avaliable in backup image.

/usr/openv/netbackup/bin/bplist -C dell-pc -l -b -t 13 - -R 2

the result should have /D/Netbackup/ , please check the command and post the output.

RamNagalla's picture

/install path/veritas/netbackup/bin/bplist -C dell-pc -l -b -t 13 -R 2

Arun K's picture

Yes i have the backup of D:\Netbackup

RamNagalla's picture

change /D/Netbackup to /E/Netbackup

Then i hit enter and save

when you hit enter there would be a blank line created...i guess..

could you attach the file Rename_list.txt.  dont create it again.. just attached the one that you are suing.. 

RamNagalla's picture

screen shot can not show the blank lines i believe

i just tested in my desktop, hitting enter is creating a blank line..which you need to remove.

so 

1)delete the file Rename_list.txt.

2)create it again

3)put the line

change /D/Netbackup to /E/Netbackup

4)don' t hit Enter.

save it. and try restore.

SOLUTION
Arun K's picture
12/24/2012 9:51:10 PM - begin Restore
12/24/2012 9:51:12 PM - restoring image dell-PC_1355681471
12/24/2012 9:51:12 PM - requesting resource Fibre Transport
12/24/2012 9:51:12 PM - Warning nbjm(pid=2668) NBU status: 800, EMM status: Fibre Transport resources are not available  
12/24/2012 9:51:12 PM - Warning nbjm(pid=2668) NBU status: 800, EMM status: Fibre Transport resources are not available  
12/24/2012 9:51:15 PM - connecting
12/24/2012 9:51:19 PM - connected; connect time: 00:00:04
12/24/2012 9:51:19 PM - started process bptm (7700)
12/24/2012 9:51:20 PM - Critical bptm(pid=7700) image open failed: error 2060013: no more entries     
12/24/2012 9:51:25 PM - restored image dell-PC_1355681471 - (media open error(83)); restore time 00:00:13
12/24/2012 9:51:25 PM - Warning bprd(pid=1780) Restore must be resumed prior to first image expiration on 2/16/2013 11:41:11 PM
12/24/2012 9:51:25 PM - end Restore; elapsed time: 00:00:15
the restore failed to recover the requested files(5)
12/24/2012 9:51:30 PM - Error bpbrm(pid=6388) client restore EXIT STATUS 83: media open error
RamNagalla's picture

did you observer that .. this time its different error.. so the eariler issue was with the blank line and it got resolved. ..i believe.. 

so you need to work on below New error... now.

12/24/2012 9:51:20 PM - Critical bptm(pid=7700) image open failed: error 2060013: no more entries     
12/24/2012 9:51:25 PM - restored image dell-PC_1355681471 - (media open error(83)); restore time
 
where is the backup image located? does it on tape or disk?
did you able to verify the image dell-PC_1355681471?