Forum Discussion
Hi,
Which restore type that you tried to restore?
- file level, database, VMware or etc
Same location or redirect restore?
Show me the destination location?
Netbackup version master/media and client?
OS and version of NetBackup master/media and client?
Thank you.
- BharathAchar4 years agoLevel 4
running with command line option, because I wanted to run it on a specific media server -
its a standard restore and restoring to nfs path, same client client has acccess to destination nfs path.
ba5lsbk0200> cat /tmp/changefile4
change "/nfs/iind/disks/sdg74_0523/.snapshot/snapshot_for_backup_iind_disks_sdg74_0523/anemoori" to "/nfs/iind/disks/cmode_restore/TASK9464695_acharbha_restore"/usr/openv/netbackup/bin/bprestore -B -L /tmp/progress_log4 -C ba5lsbk0204.iind.company.com -D ba5lsbk0204.iind.company.com -S ba5lsbk0200.iind.company.com -disk_media_server ba5lsbk0202.iind.company.com -t 0 -p incfsv07a_aggr1_incfs07n03b_H_iind_disks_sdg74_0523 -s 01/21/20 08:50:00 -e 01/22/20 17:40:00 -R /tmp/changefile4 "/nfs/iind/disks/sdg74_0523/.snapshot/snapshot_for_backup_iind_disks_sdg74_0523/anemoori"
/tmp/progress_log4 - shows it is writing but is not writing the data on desination and not even creating the destination path provided in /tmp/changefile4
- BharathAchar4 years agoLevel 4
- lnw4 years agoLevel 3
BharathAchar
Not sure you found this KB or not, if not please recheck the -f and listfile options as shown below,For different client:
bprestore -B -L progress_log -C source_client -D destination_client -R rename_file -f listfileOption Variables:
progress_log = location of the restore progress log including file name
rename_file = full path of a text file with rename instruction
listfile = list of file to be restoreNote: For the contents of the rename file, there must be one line entry for each file or directory to be renamed, and ensure each line ends with a return, as seen below
Line 1: change original_file to new_file(return)
Line 2: (empty line)Example:
To restore all files under D:\Projects to the same client at E:\RestoreFiles\.
1 Create the rename_file, named rename.txt, located: C:\temp\rename.txt, put the following entry in the file:
change /D/Projects to /E/RestoreFiles/
Note: Ensure there is a 'return' above to start a new empty line.
Create the restore listfile, named filelist.txt, located C:\temp\filelist.txt, put the following entry in the file:
/D/Projects
From the client, run the restore command:
bprestore -L /C/temp/restore.log -R /C/rename.txt-f /C/filelist.txt- BharathAchar4 years agoLevel 4
lnw thanks, I'm aware of the command line option and used the same command earlier for different similar restore.
problem here is Netbakcup job details shows it is writing data to as you see KB written in my attcahment.
however when we look at the destination path, its not writing & the destination path is not even creating.
- Marianne4 years agoLevel 6
Last thought:
Try the 'changefile' without using quotes.
I'm having another look at the Command Reference Guide - quotes are nowhere seen, except with keyword option.
So, probably not supported in rename syntax.- davidmoline4 years agoLevel 6
Two comments / suggestions.
- As Marianne there should be no quotes in either the rename file or the restore file (if there are spaces, then use a restore file with the path length listed before the file name - not relevant in your case).
- The rename file is probably being ignored as it is not in a "safe" path - you either need to locate this under /usr/openv/netbackup/logs, or update BPCD_WHITELIST_PATH to include /tmp
Related Content
- 12 years ago
- 11 months ago