We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Backup Exec 11d - Which Table Holds Backup Set Information

Medium Priority
1,006 Views
Last Modified: 2013-12-01
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?
Comment
Watch Question

Author

Commented:
I believe that the CatResource table has this information.  Does anyone know if this is the information that represents the selection list data?

Author

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?

Commented:
Check the resource table
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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.