08-24-2012 06:13 AM
Hi ALL,
Still I am unable to restore .Please can anybody provide the example of a restore by bprestore.
and the output of each file using cat command.
Solved! Go to Solution.
08-26-2012 05:16 AM
Sorry, I'm confusing things
'rename' will not work, this was only a variable in the script.
ok.
This
08-24-2012 06:27 AM
define "unable to restore"
Are you getting errors?
Do you not know what commands to run?
08-24-2012 06:34 AM
We have given an exact solution to this already, including the exact 'details' to put in the files.
Marianne suggested using the bplist command to confirm the files are available to restore. Have you done this ? For all we know, we could be trying to restore a file that is not available.
How about using the GUI to do the restore. ? This will prove the files can be restored.
Martin
08-24-2012 06:42 AM
I have did that many times.Trust me but i guess soething is going wrong.Files comes in bplist command but not able to restore through bprestore command.Please can anybody restore and provide me the details of each steps.
08-24-2012 07:10 AM
Here is the Unix version ... Windows should be the same.
08-24-2012 07:15 AM
I missed the other post. What are you restoring from and to. Is a windows box from a unix server. Are you on the server itself, or are you pushing it from the master? Is it a database or exchange? Or just a flat file?
I appologize if these questions were answered in the other post.
USAGE: bprestore [-A | -B] [-K] [-l | -H | -y] [-r] [-T]
[-L progress_log [-en]] [-R rename_file] [-C client]
[-D client] [-S master_server] [-disk_media_server media_server]
[-t policy_type] [-p policy] [-k "keyword phrase"] [-cm] [-drs]
[-md] [-dd] [-td temp_dir] [-F file_options] [-copy copy_number]
[-s mm/dd/yyyy [HH:MM:SS]] [-e mm/dd/yyyy [HH:MM:SS]]
[-w [hh:mm:ss]] -f listfile | filenames
[-BR sharepoint_redirected_portal | sharepoint_redirected_teamsite]
[-spsredir_server sharepoint_redirected_hostname]
[-granular_restore] [-priority number]
[-spsverkeep <0|1|2>] [-spscurver] [-spsignorelock] [-spspreserveiis] [-spsrestoresecurity]
08-24-2012 07:21 AM
@Martin:
Can u provide cat output of below files:
/tmp/res/alt_locat
tmp/res/restore_log.txt
08-24-2012 11:02 AM
Please show us your bplist command, and the output of the command.
Then show us your bprestore command (including contents of any text files used in bprestore command).
We can only help if show us us exactly what the issue is.
bprestore works - you just need to have ALL the options correct. One mistake will cause status 227.
08-24-2012 11:52 AM
/tmp/res/alt_locate
change /netbackup/testdata to /tmp/res<CR> (<CR> means carridge return)
/tmp/res/filelist
/netbackup/testdata/file1.txt
Restore log is created when you run the command.
08-24-2012 11:14 PM
I want cat file name of all above text files
08-25-2012 01:23 AM
You need to really get down to what requirement you have, how you tested, show us the exact command you used, what the error you got - only then I guess we can start somewhere. I do believe those who replied had given you plenty of clues to run a test.
bprestore can do lots of restore command, and not only typical "MS-Windows" and "Standard" backup type. So there are too many options to explain. Need to be as specific as possible.
08-25-2012 05:10 AM
Call the file anything you link, providing you put the correct things in the file it is fine.
If you create the files with the names I showed, you put these file names in the command.
Martin
08-25-2012 05:12 AM
Eg.
bprestore -s $STARTDATE -S $MASTER -C $SOURCE -D $DESTINATION -L /tmp/log.txt -R /tmp/res/alt_locate -f /tmp/res/filelist
Where the two files contain
/tmp/res/alt_locate
change /netbackup/testdata to /tmp/res<CR> (<CR> means carridge return)
/tmp/res/filelist
/netbackup/testdata/file1.txt
Martin
08-25-2012 11:17 PM
08-26-2012 01:21 AM
You forgot the word rename or change in your alt_locate file:
/u27/oradata/MKBP/trace_files/ to /tmp/restore/
should be:
change /u27/oradata/MKBP/trace_files/ to /tmp/restore/
The error is actually telling you what is wrong:
Error in rename line: </u27/oradata/MKBP/trace_files/ to /tmp/restore/> at or near keyword <change >
Please see this TN on how to create 'rename file' and the usage of 'rename' and 'change' in this file:
http://www.symantec.com/docs/HOWTO43687 |
08-26-2012 01:31 AM
08-26-2012 01:59 AM
At the end of this line
change /u27/oradata/MKBP/trace_files/ to /tmp/restore/
You must press the return key, so that the cursor is on the 2nd line in the file
Martin
08-26-2012 01:59 AM
i have done that
08-26-2012 02:48 AM
08-26-2012 05:16 AM
Sorry, I'm confusing things
'rename' will not work, this was only a variable in the script.
ok.
This