Re: Include Backup and Archive data to different mgmtclasses
2002-11-26 12:51:56
I am using following script , See if it helps ...
#!/usr/bin/ksh
# File name is TSM_BKUP.sh
# This script is used to backup files and directories using TSM.
DOW=`date "+%w"`
DOM=`date "+%e"`
DOY=`date "+%j"`
# Set the Management class for the backup.
if [ $DOY = 001 ]
then
MGMTCL=yeardkmc
else
if [ $DOW = 6 ]
then
if [ $DOM -le 7 ]
then
MGMTCL=monthdkmc
else
MGMTCL=weekdkmc
fi
else
MGMTCL=dailydkmc
fi
fi
cd /tsg/tsm
# Backup the Applications directories.
dsmc archive /opt/coins9/live/ /opt/coins9/live/data/ /opt/coins9/col/
/opt/coin
s9/col/data/ -subdir=yes -archmc=$MGMTCL -description="`uname
-n`_appdir_`date "
+%d/%m/%Y"`" >> /tsg/tsm/logs/appdir_`date "+%d%m%Y"`
sleep 5
# Compress the log file of the backup of the apps directories.
if [ -a /tsg/tsm/logs/appdir_`date "+%d%m%Y"`.Z ]
then
rm /tsg/tsm/logs/appdir_`date "+%d%m%Y"`.Z
else
compress /tsg/tsm/logs/appdir_`date "+%d%m%Y"`
fi
sleep 5
# Create a report of the log file from appdir.
zcat /tsg/tsm/logs/appdir_`date "+%d%m%Y"`.Z | grep -v "^Directory" |grep
-v "^S
pecial File" |grep -v "^Normal File" |grep -v "ANS1898I" | grep -v
"^Symbolic Li
nk" > /tmp/appdir_`date "+%d%m%Y"`
exit 0
f2n27 /tsg/tsm>
Thank You and Best regards.
^^^^^^^^^^^^^^^^^^^^^^^^
Shekhar Dhotre
Midrange Engineer.
lend lease Inc , Atlanta - 30346
PH: 1+404-846-7483
FAX:1+404-848-2887
Email :shekhar.dhotre AT lendleaserei DOT com
visit Us at www.lendlease.com
This E-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended only
for the use of the Individual(s) named above. If you are not the intended
recipient of this E-mail, or the employee or agent responsible for
delivering it to the intended recipient, you are hereby notified that any
dissemination or copying of this E-mail is strictly prohibited. If you
have
received this E-mail in error, please immediately notify us .
"Cook, Dwight E" <DWIGHT.E.COOK AT SAIC DOT COM>
Sent by: "ADSM: Dist Stor Manager" <ADSM-L AT VM.MARIST DOT EDU>
11/25/2002 11:40 AM
Please respond to "ADSM: Dist Stor Manager"
To: ADSM-L AT VM.MARIST DOT EDU
cc:
Subject: Re: Include Backup and Archive data to different
mgmtclasses
To bind archive data to a different management class, look at the
-archmc=blah option of the archive command.
Maybe that will work for you...
dsmc archive -pass=blah -archmc=MC2 -subdir=yes c:\temp\*
Dwight
-----Original Message-----
From: Rushforth, Tim [mailto:TRushfor AT CITY.WINNIPEG.MB DOT CA]
Sent: Monday, November 25, 2002 10:18 AM
To: ADSM-L AT VM.MARIST DOT EDU
Subject: Include Backup and Archive data to different mgmtclasses
I am trying to bind a subset of files to a mgmtclass of MC1 for backup
data
and MC2 for archive data. Is this possible?
My option file has:
Include.backup c:\temp\* MC1
Include.archive c:\temp\* MC2
Data backed up is bound to the proper MC (MC1) but the archived data is
also
bound to MC1. I'm running 5.1.1.3 win32 client.
Thanks,
Tim Rushforth
City of Winnipeg
|
|
|