Automated DB2 redirected restore.
Environment:
Master Server - SLES 11
Media Server 1 - NBU5220
Media Server 2 - NBU5220
Clients:
Client 1 - SLES 11
Client 2 - SLES 11
PDDO - NBU5020
Situation:
Client 1 is a production DB2 server sitting in a DMZ serviced by Media Server 1. Client 2 is a development DB2 server sitting in a different DMZ serviced by Media Server 2. The backup of Client 1 is a User Directed (Application Backup type) backup. Every week there is a refresh of Client 2 from the latest backup of Client 1. The image is stored in the PDDO and both Media Servers have access to the PDDO. Our DBA's want to automate the restore but what seem to break down is the media server ownership. Client 2 and Media Server 1 are not accessible. to each other.
How do I automate the image ownership so Client2 can do a restore of an image from Client 1 through Media Server 2?
I am not sure FORCE_RESTORE_MEDIA_SERVER is the right choice when only single images need modification and not a entire media server.
I found this command - I think it can do the job:
bpimage -newserver <new_servername> -oldserver <old_servername> -id {backupid}
This command will change the media server ownership so a restore can take place on the media server located in the DMZ.
https://www-secure.symantec.com/connect/forums/changing-backup-owner
http://www.symantec.com/docs/HOWTO43660
Best Regards
Nicolai