Commit 17d86a44 authored by bnachtw's avatar bnachtw
Browse files

moved of rysnc to the end of script

parent 82c7fb53
...@@ -5,27 +5,12 @@ ...@@ -5,27 +5,12 @@
luser=$(echo $1 | tr '[:upper:]' '[:lower:]'); luser=$(echo $1 | tr '[:upper:]' '[:lower:]');
uuser=$(echo $1 | tr '[:lower:]' '[:upper:]'); uuser=$(echo $1 | tr '[:lower:]' '[:upper:]');
# copy / sync vital instance files
# -c checksum instead of timestamp
# -t preserve timestamp
# -u update only
rsync -ctu /$luser/config/cert* /tsmshare/DRM/$uuser/
rsync -ctu /$luser/config/devconf.dat /tsmshare/DRM/$uuser/
rsync -ctu /$luser/config/dsmkeydb* /tsmshare/DRM/$uuser/
rsync -ctu /$luser/config/dsmserv.opt /tsmshare/DRM/$uuser/
rsync -ctu /$luser/config/tsmdbmgr.opt /tsmshare/DRM/$uuser/
rsync -ctu /$luser/config/volhist.dat /tsmshare/DRM/$uuser/
set -x set -x
# do DB2 analysis # do DB2 analysis
su -c "cd /tsmshare/OfflineReorg/$luser && sh /tsmshare/bin/get-DB2-Analysis.sh" -l $luser su -c "cd /tsmshare/OfflineReorg/$luser && sh /tsmshare/bin/get-DB2-Analysis.sh" -l $luser
# remove old planfiles # remove old planfiles
find /tsmshare/DRM/$uuser/ -name "*" -ctime +30 -exec rm -vf {} \; find /tsmshare/DRM/$uuser/ -ctime +30 -exec rm -vf {} \;
# remove old dsmffdc.log files # remove old dsmffdc.log files
find /$luser/config -name "dsmffdc.log.*" -ctime +30 -exec rm -vf {} \; find /$luser/config -name "dsmffdc.log.*" -ctime +30 -exec rm -vf {} \;
...@@ -45,5 +30,13 @@ find /$luser/sqllib/db2dump -name "db2diag*log_*" -ctime +30 -exec rm -vf ...@@ -45,5 +30,13 @@ find /$luser/sqllib/db2dump -name "db2diag*log_*" -ctime +30 -exec rm -vf
# remove old weblog file # remove old weblog file
rm -f /tsm/dsmwebcl.log rm -f /tsm/dsmwebcl.log
# copy / sync vital instance files
# -c checksum instead of timestamp
# -t preserve timestamp
# -u update only
rsync -ctu /$luser/config/cert* /tsmshare/DRM/$uuser/
rsync -ctu /$luser/config/devconf.dat /tsmshare/DRM/$uuser/
rsync -ctu /$luser/config/dsmkeydb* /tsmshare/DRM/$uuser/
rsync -ctu /$luser/config/dsmserv.opt /tsmshare/DRM/$uuser/
rsync -ctu /$luser/config/tsmdbmgr.opt /tsmshare/DRM/$uuser/
rsync -ctu /$luser/config/volhist.dat /tsmshare/DRM/$uuser/
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment