Hi,
These are the guidelines we usually follow. I might be getting to basic here but am hopeful that might help u..
1. Take a full offline backup of prod. This will create an image file.
2. Initiate a FTP of the image file to the server you wish. Note here I would prefer if you have admin user access, we usually do it by root.
3. On the filesystem you have ftp'd the image, chmod it to 755 that will allow all users to read data from the image.
4. If you are still doubtful that the image has not been ftp'd successfully you can issue the db2ckbkp (check backup) command to verify the image.
5. Now perform the redirected restore as instance owner preferably or a userid that has sysadm priviliges. Also ensure that the instance userid has priviliges to read from the source filesystem and write to the target filesystem
db2 "restore db <dbname> from <backup location> taken at <backup
timestamp> to <new location> into <newdbname> redirect"
For example
db2 "restore db test from /data/backup taken at 20070525164103 to /data/newdb into newdb redirect"
6. Once this goes through you will need to redefine all the containers. You will need to get a list of tablespaces and define the new container paths based on the container id's.
7. Then you will have to issue the following command
db2 "restore db test continue"
8. Once that is done you will need to issue
db2 rollforward db newdb stop.
**** If you need to switch off online logging then you can go ahead and update db cfg to set userexit and logretain off*****
9. Once that is done you can use the db2 update db cfg comamnd to update the LOGPATH
I have attached sample script depicting steps 5,6 & 7 . Hope that should help u..