Gitlab Community Edition Instance
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bnachtw
TSM-Scripts
Commits
17d86a44
Commit
17d86a44
authored
Jan 04, 2021
by
bnachtw
Browse files
moved of rysnc to the end of script
parent
82c7fb53
Changes
1
Hide whitespace changes
Inline
Side-by-side
Server-Maintenance/do-housekeeping.sh
View file @
17d86a44
...
...
@@ -5,27 +5,12 @@
luser
=
$(
echo
$1
|
tr
'[:upper:]'
'[:lower:]'
)
;
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
# do DB2 analysis
su
-c
"cd /tsmshare/OfflineReorg/
$luser
&& sh /tsmshare/bin/get-DB2-Analysis.sh"
-l
$luser
# 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
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
# remove old weblog file
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment