Solved

Backupexec SQL Agent fails to back up SQL database files

Posted on 2014-10-27
5
696 Views
Last Modified: 2014-11-06
BackupExec - Restore Backup Job History and SQL Data Folder BackuExec Version BackupExec License Information
Hi,
  I have Backupexec running on Windows 2008 Domain Controller (named "DC1") and a Windows 2003 Server running Microsoft SQL database. I did not install Backup Exec software, but I thought all SQL database files were being backed up. The other day I discovered that I could not restore SQL database file "TMW_LIVE.mdf (17GB)". So I checked backup Job History from one random day and learned that these SQL database files were "skipped" because they are OPEN.

 How do I need to do to close these SQL database files during the backup time and reopen them after the backup job is run?

Thanks.
0
Comment
Question by:sglee
5 Comments
 
LVL 47

Accepted Solution

by:
Vitor Montalvão earned 250 total points
ID: 40408533
You can't backup SQL Server database files while SQL Server is running because the engine don't let any other process to access the files.
The best option is to use a Symantec SQL client for execute the database backups or if you want to keep the same solution you need to execute the database backups inside SQL Server and then provide the path for Symantec Backup to execute the backups only for those files and not the .MDF and .LDF.
0
 
LVL 11

Assisted Solution

by:Mr Tortur
Mr Tortur earned 125 total points
ID: 40408800
Hi sglee,
You can backup your SQL Databases online easily because you have the SQL agent licence in backup exec. That is its purpose and if you have the licence you had probably paid for it. Sure you can also backup your DB with a dump, it is free, but it is less comfortable.
To use your SQL agent, when backuping your server with backup exec you must browse to select different objects than classic folder/files. When selecting which data to backup on your server in Backup exec, you should have an object named SQL server under your server, at the same level than the server's local drives. If you use this object to backup in your selection it will use the SQL agent.
If licence and agent for SQL are finally installed in Backup Exec there is nothing more to do.
0
 

Author Comment

by:sglee
ID: 40409878
SQL Database Backup FolderBackup Selection@Vitor,
As seen in the screenshot above, I run SQL database backup daily from SQL Server/W2003 Server and stores 1 day worth of BAK and TRN files in \\DC1\SQLBackup folder. Since I am backing up the D drive on DC1 and D drive has SQLBackup folder, I think I can restore SQL database from TRN and BAK files if needed.
0
 
LVL 47

Assisted Solution

by:Vitor Montalvão
Vitor Montalvão earned 250 total points
ID: 40418999
Sorry for the delay but I wasn't able to connect to EE in these last days.

About your question, the answer is yes. Be careful with the files that you chose. You need the last .BAK file and all the .TRN files since the last .BAK until the time you want to restore (usually the last one).
0
 
LVL 23

Assisted Solution

by:Rahul Misra
Rahul Misra earned 125 total points
ID: 40419233
Backing up SQL databases and transaction logs
http://www.symantec.com/docs/HOWTO99220 

Automatic exclusion of SQL data during volume-level backup
If you select a volume that contains SQL data for backup, the SQL Agent determines which SQL data should not be included in a volume-level backup. For example, .MDF and .LDF files should not be part of the backup because they are opened for exclusive use by the SQL system. These files will be automatically excluded for backup by a feature called Active File Exclusion. If this exclusion did not happen during a non-snapshot backup, these files would appear as in use - skipped. If this exclusion did not happen during a snapshot backup, the files would be backed up in a possible inconsistent state, which could create restore issues.

While it is not recommended, if you want to include SQL data in a volume-level backup, you must first dismount the database that you want to back up. Then, run the backup job.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question