Netbackup bprestore issue - No files in the new destionation.
Dear all,
Thanks for your answer. I'm working on Windows machine. With NB version 7.5.0.6 with MS-Windows restore (t 13)
I have an issue with bprestore command.
Just to explain you, I have :
- MASTER Server : server1.fr
- Source machine for original Backup : server2
- Destination / Targer machine for restored files : server2
- Nevertheless, my files are located on server3/t$/basketball
- And I would like change server3/t$/basketball to server4/t$/tennis
In order to do that, I read a lot of things about bprestore and how to use it. Also, thank's to many posts one different topics here.
My command is :
bprestore -B -drs -t 13 -L /C/temp/restore.log -s 9/13/2014 -e 10/11/2014 -S server1.fr -C server2 -D server2 -R /C/temp/rename.txt -f /C/temp/list.txt
The file rename.txt :
change //server3.fr/t$/basketball/ to //server4.fr/t$/tennis/test_restore <CR> (click enter at the end)
The file list.txt :
\\server3.fr\t$\basketball
When, I run the command, everything should be ok, like "Successefully Completed", the numbers of the files is ok etc.... (I saw that thank's to the NB Admin Console) (media server correctly appears on the console)
Nevertheless, I go in the directroy and nothing has changed, no new directory with the file.
After a little investigation by myself :
When I go to the logs, something is missing. Indeed, I saw in another topic on this website, the steps (see the attachement) are missing in my logs files.
I try to do it from the GUI, and everything is ok. I saw all logs entries, the files are in the other path. (same dates, same path, same Master, same Client, without ACL, just modify the destination in the last)
In order to resolve it, I try to map \\server3.fr\t$\basketball and \\server4.fr\t$\tennis\test as a network drive.
Thanks to a little script like :
$1=\\server3.fr\t$\basketball
$2=\\server4.fr\t$\tennis\test
net use k: $1
net use s:$2
echo change //server3.fr/t$/basketball/ to //server4.fr/t$/tennis/test_restore > c:\temp\rename.txt
bprestore -B -drs -t 13 -L /C/temp/restore.log -s 9/13/2014 -e 10/11/2014 -S server1.fr -C server2 -D server2 -R /C/temp/rename.txt -f /C/temp/list.txt
The script works, the command is launched in NetAdmin console, but when I go to the new path, nothing it's happend.
That's why, I have two questions :
- Where is (are) my mistake(s) ?
- How is It possible to have my files after a restore from the GUI but doesn't work from the command line, because, during the process I try to "translate" GUI comportment in the command line. I saw the documentations, man page, a lot of things.
Thank's for your answer.