• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 976
  • Last Modified:

Backup Exec 11d - Which Table Holds Backup Set Information

I need to query the BEDB to produce a list of the Backup Sets by Machine or Job Name.  Of the 146 tables in the BEDB, does anyone know which table contains the backup set information?
  • 3
1 Solution
robtrollerAuthor Commented:
I believe that the CatResource table has this information.  Does anyone know if this is the information that represents the selection list data?
robtrollerAuthor Commented:
OK, looking further into this, the CatResource table and the Resource table both contain the server name and the each of the drives that are being backed up.  The Resource table also contains any SQL db being backed up.  Unfortunately, I 'm not able to find the Selection Detail.  For instance, if I have selected only the Documents and Settings and Windows directories on the C drive, I can query and get the server name and C as a resource but I'm still not able to find the two directories that are being backed up.  Anyone know where that bit of data resides?
Check the resource table
robtrollerAuthor Commented:
After more reverse engineering I came up with the following:
The backup set data is housed in the BackupScriptEntries table.  The script name (Selection List Name) that ties the backup set selections together is found in the Scripts table.  The attached query will pull the Selection List Name, the File Path and a delimiter that indicates if the file path is Excluded (1 = /SUBDIR  0=/SUBDIR /EXCLUDED).  You must provide the ScriptID parameter to the query (@Param1).  The ScriptID can be found in the Scripts table and in the Jobs table. It is easy to find the specific Job Name in the Jobs Table then plug the ScriptID in to this query and come up with the Backup Set details.
Hope this is helpful.

Select s.Scriptname as "SL", b.deviceselectionname + b.pathname  + '\'  + b.[filename] as "BS", OperType as "Ex"
from [nebackup01\bkupexec].bedb.dbo.Scripts S join [nebackup01\bkupexec].bedb.dbo.BackupScriptEntries B  
on s.scriptid = b.scriptid
where s.ScriptID =  @Param1 and delimiter <> 1
order by b.deviceselectionname

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now