Results 1 to 8 of 8
Thread: Legal Hold Backup
-
06-13-2012, 11:50 AM #1Newcomer
- Join Date
- Jun 2012
- Posts
- 4
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Legal Hold Backup
Hello everyone every month I have to run the command "GENERATE BACKUPSET RWEXCH1AH21 LGL052012 Devclass=ltodev toc=preferred wait=no retention=nolimit" to run our monthly legal hold backup of our exchange servers. Im trying to automate this process by using a script but I need some help. I would need to change LGL052012 to the previous month and year everymonth before I run the backup so TSM knows to backup the previous month. Also how can I get these tapes that it dos the backup to to eject automatically when done. Thanks everyone for your help
-
06-13-2012, 12:44 PM #2Moderator
- Join Date
- Aug 2005
- Location
- Somewhere in the US
- Posts
- 5,299
- Thanks
- 2
- Thanked 137 Times in 135 Posts
What environment are you on - I would be suggesting a script outside of TSM but the script depends on whether you are in Windows or Unix/Linux.
Ed
-
06-13-2012, 12:59 PM #3Newcomer
- Join Date
- Jun 2012
- Posts
- 4
- Thanks
- 0
- Thanked 0 Times in 0 Posts
I am running on windows
-
06-13-2012, 01:23 PM #4Moderator
- Join Date
- Aug 2005
- Location
- Somewhere in the US
- Posts
- 5,299
- Thanks
- 2
- Thanked 137 Times in 135 Posts
This works by default in Windows 2008 and later. Powershell is needed.
@echo off
ren Run this in c:\Program Files\Tivoli\TSM\balient where
ren dsmadmc.exe is located
PowerShell $date = Get-Date; $date=$date.AddMonths(-1); $date.ToString('MMyyyy') > lastMth.dat
for /F %%i in (lastMth.dat) do (
dsmadmc -id=admin -pa=adminpass "GENERATE BACKUPSET RWEXCH1AH21 LGL%%i Devclass=ltodev toc=preferred wait=no retention=nolimit"
)
Save as a cmd fle.
Schedule it to run at the first of each month.Ed
-
06-13-2012, 02:04 PM #5Newcomer
- Join Date
- Jun 2012
- Posts
- 4
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Thanks so much this looks like it is going to work perfect. Is there any way I can get TSM to eject these tapes once the backup is done?
-
06-13-2012, 02:25 PM #6Moderator
- Join Date
- Aug 2005
- Location
- Somewhere in the US
- Posts
- 5,299
- Thanks
- 2
- Thanked 137 Times in 135 Posts
When something like this is executed from outside TSM, the challenge is to know when a process such as this is done and go on to the next step.
Well, it won't be straightforward and easy to do. What you can try is look for the AN code from the actlog that signals the 'generate backupset' is done and base the tape ejection from there. I don't know the AN code for this!Last edited by moon-buddy; 06-14-2012 at 08:55 AM.
Ed
-
06-14-2012, 07:57 AM #7Newcomer
- Join Date
- Jun 2012
- Posts
- 4
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Hey moon-buddy what would the script be if I need it to be for the current month thanks
-
06-14-2012, 08:03 AM #8Moderator
- Join Date
- Aug 2005
- Location
- Somewhere in the US
- Posts
- 5,299
- Thanks
- 2
- Thanked 137 Times in 135 Posts
Replace: PowerShell $date = Get-Date; $date=$date.AddMonths(-1); $date.ToString('MMyyyy') > lastMth.dat
with: PowerShell $date = Get-Date; $date.ToString('MMyyyy') > lastMth.datEd
Similar Threads
-
HOLD the TSM Server possible?
By girreis in forum Backup / Archive DiscussionReplies: 5Last Post: 11-03-2011, 09:35 PM -
Is This Legal ?
By tsmnovice in forum Storage Management JobsReplies: 11Last Post: 07-01-2009, 12:06 PM -
Tape retention for legal discovery case.
By AlanDavenport in forum Tape / Media LibraryReplies: 3Last Post: 07-16-2007, 08:59 AM -
Legal/Freeze Hold
By slapelu in forum Litigation Hold / eDiscoveryReplies: 4Last Post: 06-04-2007, 07:32 PM -
Hold Backup Job
By AndyRH in forum Backup / Archive DiscussionReplies: 1Last Post: 03-25-2003, 10:15 AM


Reply With Quote
