Results 1 to 9 of 9
Thread: Excluding a Database?
-
02-01-2012, 11:08 AM #1Newcomer
- Join Date
- Feb 2012
- Posts
- 5
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Excluding a Database?
Hi all sorry for the Newb question,
I'm trying to exclude one database from the DSM.opt. I've read multiple tread on it and can't really figure out what's wrong in my DSM file.
Here's my syntax
EXCLUDE "mtlsql10\meta\...\Son_db\full*"
EXCLUDE "mtlsql10\data\...\Son_db\full*"
what am I missing?
Thank you for your time!
Don't forget I am a newbe for TSM. ;o)
-
02-01-2012, 11:16 AM #2
So the full backup always starts with full in the name? Also if we are talking about a windows sever you need to specify a drive.
EXCLUDE "*:\mtlsql10\meta\...\Son_db\full*"
EXCLUDE "*:\mtlsql10\data\...\Son_db\full*"
See if that works.
-
02-01-2012, 11:35 AM #3Newcomer
- Join Date
- Feb 2012
- Posts
- 5
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Thanks Chad, But it did not work.
Here is my full DSM
EXCLUDE "*:\mtlsql10\meta\...\Son_db\*"
EXCLUDE "*:\mtlsql10\data\...\Son_db\*"
INCLUDE "mtlsql10\meta\...\bud\full*" sql
INCLUDE "mtlsql10\data\...\bud\full*" sql
INCLUDE "mtlsql10\meta\...\arc2\full*" sql
INCLUDE "mtlsql10\data\...\arc2\full*" sql
INCLUDE "mtlsql10\meta\...\arc\full*" sql
INCLUDE "mtlsql10\data\...\arc\full*" sql
INCLUDE "mtlsql10\meta\...\User\full*" sql
INCLUDE "mtlsql10\data\...\User\full*" sql
INCLUDE "mtlsql10\meta\...\msdb\full*" sql
INCLUDE "mtlsql10\data\...\msdb\full*" sql
INCLUDE "mtlsql10\meta\...\model\full*" sql
INCLUDE "mtlsql10\data\...\model\full*" sql
INCLUDE "mtlsql10\meta\...\master\full*" sql
INCLUDE "mtlsql10\data\...\master\full*" sql
As for the DB that start with the name full, I really don't know. I will take a look at this with the DBA.
Thanks again
-
02-01-2012, 11:47 AM #4
EXCLUDEs need to be first in most INCLUDE/EXCLUDE lists. Remember this phrase...I used it when I taught TSM years ago to help students understand how INCLUDE/EXCLUDES work (I would have them repeat it out load, hence the ALL CAPS!)....
ANY EXCLUDE.DIR's ARE READ FIRST
BOTTOM UP PROCESSING
STOP WHEN YOU FIND A MATCH
IF ITS NOT EXCLUDED ITS INCLUDED!
Note: TSM starts reading from the BOTTOM of the list not top
-
02-01-2012, 11:52 AM #5Newcomer
- Join Date
- Feb 2012
- Posts
- 5
- Thanks
- 0
- Thanked 0 Times in 0 Posts
I reverse the dsm so that it looks like this, and I still have the possibility to backup that database
INCLUDE "mtlsql10\meta\...\bud\full*" sql
INCLUDE "mtlsql10\data\...\bud\full*" sql
INCLUDE "mtlsql10\meta\...\arc2\full*" sql
INCLUDE "mtlsql10\data\...\arc2\full*" sql
INCLUDE "mtlsql10\meta\...\arc\full*" sql
INCLUDE "mtlsql10\data\...\arc\full*" sql
INCLUDE "mtlsql10\meta\...\User\full*" sql
INCLUDE "mtlsql10\data\...\User\full*" sql
INCLUDE "mtlsql10\meta\...\msdb\full*" sql
INCLUDE "mtlsql10\data\...\msdb\full*" sql
INCLUDE "mtlsql10\meta\...\model\full*" sql
INCLUDE "mtlsql10\data\...\model\full*" sql
INCLUDE "mtlsql10\meta\...\master\full*" sql
INCLUDE "mtlsql10\data\...\master\full*" sql
EXCLUDE "*:\mtlsql10\meta\...\Son_db\*"
EXCLUDE "*:\mtlsql10\data\...\Son_db\*"
Sorry for all the trouble
-
02-01-2012, 01:36 PM #6
No the Exclude will override any following includes for the same directory. The TSM client will exclude all files once it hits the mtlsql10\meta\...\Son_db\ and the \mtlsql10\data\...\Son_db\ directories. Any following includes will be ignored. Try it.
-
02-01-2012, 01:59 PM #7
I think, you use tdp for sql, not the ba client. In this case, you have to write something like this to the dsm.opt file:
exclude \...\Son_db\full*
-
02-01-2012, 02:49 PM #8Senior Member
- Join Date
- Apr 2007
- Location
- Oslo, Norway
- Posts
- 241
- Thanks
- 2
- Thanked 17 Times in 17 Posts
Or, using the command line
tdpsqlc backup * full /excludedb=db1,db2,db3.....-= Trident =-
-
02-01-2012, 02:55 PM #9Newcomer
- Join Date
- Feb 2012
- Posts
- 5
- Thanks
- 0
- Thanked 0 Times in 0 Posts
@zsoltesz, yes I am using TDP. I've tried what you suggest but I'm still able to backup that database. I guess what I'll do is just stop my scheduler for tonight. It was only a one time deal and if I need further assistance I will place a call with IBM or come back to this forum where you get an excellent service!
Similar Threads
-
Excluding a database
By theconqueror in forum Microsoft SQL ServerReplies: 3Last Post: 01-13-2010, 09:15 AM -
Excluding Mirrored SQL Database in OPT
By MikeVB in forum Microsoft SQL ServerReplies: 2Last Post: 11-24-2009, 03:34 PM -
Excluding ASR
By GregE in forum Backup / Archive DiscussionReplies: 11Last Post: 04-13-2009, 01:03 PM -
Excluding VSS
By hpatel1974 in forum Backup / Archive DiscussionReplies: 1Last Post: 06-15-2005, 12:42 AM -
excluding database files from file system backup
By boonchia in forum TDP/Application Layer BackupReplies: 0Last Post: 10-21-2002, 12:30 AM


Reply With Quote
