Comprehensive data protection for all workloads
Post Reply
bmink
Lurker
Posts: 1
Liked: never
Joined: Mar 01, 2016 3:40 pm
Full Name: Brandon Mink
Contact:

SQL Backed Up Servers Query

Post by bmink »

Hello all -
We have been in the process of implementing Veeam into our environment. The implementation is currently being handled by our Systems Operations department so as a DBA we are a bit stuck on the easiest way to determine on a daily or weekly basis which SQL Servers have been moved onto Veeam for backups. I was curious if anyone had a query out there that they would use to query the Veeam Databases to find out any SQL Servers that are currently being backed up. Does Veeam happen to place a flag in the database to show that a server is a SQL Server?

- Thank you for your help
PTide
Product Manager
Posts: 6408
Liked: 724 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: SQL Backed Up Servers Query

Post by PTide » 1 person likes this post

Hi and welcome to the community!

In order to perform a transaction consistent backup of an SQL server an Application Aware processing should be used. When you use application-aware processing VSS writers are leveraged so normally if an SQL server is being backed up you should be able to trace SQL Writer Service activity. Another approach to perform a transaction-consistent backup is to trigger SQL native tools via pre-freeze scripts. In this case you can track backup-related activity in SQL server logs.

Thank you.
foggy
Veeam Software
Posts: 21069
Liked: 2115 times
Joined: Jul 11, 2011 10:22 am
Full Name: Alexander Fogelson
Contact:

Re: SQL Backed Up Servers Query

Post by foggy » 3 people like this post

There are also a couple of Veeam ONE reports that might be useful:

- if you're backing up SQL Server logs, you can review the SQL Backup Job Historical Information report to see all such VMs;
- there's also a general Protected VMs report.
Vitaliy S.
VP, Product Management
Posts: 27055
Liked: 2710 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: SQL Backed Up Servers Query

Post by Vitaliy S. » 1 person likes this post

bmink wrote:Does Veeam happen to place a flag in the database to show that a server is a SQL Server?
There is no flag for applications in the VM, however you can categorize/create groups for all SQL Server VMs via Veeam ONE and then scope the Protected VMs report to this group. This will give you the information about available restore points for your SQL Server VMs.
btmaus
Expert
Posts: 138
Liked: 10 times
Joined: Jul 17, 2015 9:02 am
Full Name: Glenn L
Contact:

Re: SQL Backed Up Servers Query

Post by btmaus »

foggy wrote:There are also a couple of Veeam ONE reports that might be useful:

- if you're backing up SQL Server logs, you can review the SQL Backup Job Historical Information report to see all such VMs;
I'm trying to use this report for my DBA team, however the information is blank in the report.

Any idea's?

Support case ## 02046081
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: SQL Backed Up Servers Query

Post by veremin »

Might be silly questions, but are you positive that

- Backup server is added to Veeam ONE and information from it has been already collected successfully?
- Application Aware Image Processing as well as SQL transaction log backup job is enabled for those VMs?

Thanks.
btmaus
Expert
Posts: 138
Liked: 10 times
Joined: Jul 17, 2015 9:02 am
Full Name: Glenn L
Contact:

Re: SQL Backed Up Servers Query

Post by btmaus »

Hi v.Eremin,

Thanks for replying.

Yes the backup server has been added to Veeam ONE from day 1. All the other reports work OK.

As for the backup jobs, I have 9 jobs, one for each SQL server. I do have AAIP enabled for all of them. On the General tab of the AAIP section, I have them all set to require succesfull processing and to process transcation logs. On SQL tab of AAIP, I have them all set to truncate logs. The databases are all a mix of either Full or Simple mode.
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: SQL Backed Up Servers Query

Post by veremin »

So, you're just truncating logs instead of backing up them periodically (third option on "SQL" tab)? The corresponding report is supposed to show the results of such jobs (SQL logs periodic backups), therefore, it shows nothing in your case. Thanks.
btmaus
Expert
Posts: 138
Liked: 10 times
Joined: Jul 17, 2015 9:02 am
Full Name: Glenn L
Contact:

Re: SQL Backed Up Servers Query

Post by btmaus »

Will the report only show those databases that are in Full mode then?
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: SQL Backed Up Servers Query

Post by veremin »

If you want to perform DB point-in-time restore, you need to switch DB to Full recovery mode and backup its logs periodically, using either native tools or VB&R (SQL log backup job).

DB in Full recovery mode which logs are backed up via VB&R SQL log backup job will be shown in the said report.

Thanks.
btmaus
Expert
Posts: 138
Liked: 10 times
Joined: Jul 17, 2015 9:02 am
Full Name: Glenn L
Contact:

Re: SQL Backed Up Servers Query

Post by btmaus »

I don't want to perform point-in-time restores. We backup once a day, and clear the logs of certain databases that are in Full mode, and others are in Simple mode. This works for us.

Disappointed that we cannot get a report from Veeam ONE that shows us just the SQL jobs. Can this be a feature request?
veremin
Product Manager
Posts: 20270
Liked: 2252 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: SQL Backed Up Servers Query

Post by veremin »

This report has been designed with different use case in mind - monitor state of regular SQL log backup jobs.

In your case, you can check the Protected VMs report and see whether SQL VM is shown there, since there is nothing specific regarding this VM which would require additional report.

Thanks.
Post Reply

Who is online

Users browsing this forum: Google [Bot], Paul.Loewenkamp and 232 guests