If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
I need to create a script that will scp DB2 backup files greater than 3 days from one server to another. The only problem is that the DB2 databases get backed up using the db2 instance and we sudo to the instance hence we don't know the password. Is there anyway to send it using a user id? any help would be greatly appreciated. I am running DB2 V9 on a Linux Intel platform. Thanks again.
You can use ssh to run a "find" command and identify all the files you want to copy via scp. Then you feed the result through a loop and grab each file.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development