*** To execute a command from root on behalf other users ***
su - db2inst1 -c "db2 BACKUP DB [database] ONLINE INCREMENTAL USE TSM INCLUDE LOGS " 2>&1 tee -a $_LOG
This line was taken from the db2incr.sh script on prod in /usr/tivoli/tsm/client/api/bin
No comments:
Post a Comment