Skip to main content
Solved

Exclude SQL databases from VM backups

  • June 5, 2024
  • 7 replies
  • 273 views

Forum|alt.badge.img+1

Hi All,

If I have a VM client being backed up with the VSA agent and it also has the SQL agent installed on it, how would I go about excluding the SQL databases from the the VM backup?

 

Thanks!

Best answer by Albert Williams

Hello Lani,

The following goes over the steps on how to configure and enable Appaware: 

https://documentation.commvault.com/v11/essential/search.html#q=appaware&t=All&sort=relevancy

Please go over this and advise where you are hitting issues as it is going to be the way to get your VM and SQL agent level jobs working together. 

 

Kind regards

Albert Williams

7 replies

Forum|alt.badge.img+19

Hello Lani,

The following goes over the steps on how to configure and enable Appaware: 

https://documentation.commvault.com/v11/essential/search.html#q=appaware&t=All&sort=relevancy

Please go over this and advise where you are hitting issues as it is going to be the way to get your VM and SQL agent level jobs working together. 

 

Kind regards

Albert Williams


Onno van den Berg
Community All Star
Forum|alt.badge.img+24

@Lani Sinapi so, to be clear you want the DB protection to be done via the agent and have the DBs automatically being excluded from the VSA backup? Excluding the database files from the VSA backup is possible, but this can't be done automatically. You'll have to make sure the DB files are on a separate disks and via tag based filters you can exclude these disks from the VSA backup. If you want/need to exclude the appaware backup then this can be done via a key https://documentation.commvault.com/additionalsetting/details?name=%22SkipInstallAndConfigApplications%22&id=6715


Forum|alt.badge.img+1
  • Author
  • Novice
  • June 9, 2024

Hello Lani,

The following goes over the steps on how to configure and enable Appaware: 

https://documentation.commvault.com/v11/essential/search.html#q=appaware&t=All&sort=relevancy

Please go over this and advise where you are hitting issues as it is going to be the way to get your VM and SQL agent level jobs working together. 

 

Kind regards

Albert Williams

Thank you very much this should help out greatly. Much appreciated!


Forum|alt.badge.img+1
  • Author
  • Novice
  • June 9, 2024

@Lani Sinapi so, to be clear you want the DB protection to be done via the agent and have the DBs automatically being excluded from the VSA backup? Excluding the database files from the VSA backup is possible, but this can't be done automatically. You'll have to make sure the DB files are on a separate disks and via tag based filters you can exclude these disks from the VSA backup. If you want/need to exclude the appaware backup then this can be done via a key https://documentation.commvault.com/additionalsetting/details?name=%22SkipInstallAndConfigApplications%22&id=6715

Hello, thanks so much for the info I really appreciate it. This will be great help!


Forum|alt.badge.img+4
  • Apprentice
  • March 25, 2026

What if we don't have application aware backups; we are protecting some SQL clusters and SQL servers; at the moment we do DB backups via an agent and do test recoveries to a test DB server; however in case of an issue with the server at OS layer what if we wanting to restore a VM without having to do it all from scratch (deploy vm from a template; name it similar to existing SQL server; install SQL agent and connect it to commserve; restore databses to this newly built server); we can solve this problem by taking a vm backup however we are concerned impact it would have on a busy large SQL server; and thinking the best option would be to take a backup of the VM level excluding database drives..unless there is any other option available...


Forum|alt.badge.img+19

Hello ​@Rajeev Mehta 

When running a snapshot backup you choose between the following options: 

 



In your case i would recommend using the Crash Consistent backup and then also using the SQL agent to protect the SQL data. Doing this will allow you to recover the VM in full when needed but assume any SQL data collected here wont be usable and instead you will rely on SQL agent to perform that side of recovery. 

This is assuming you are using the SQL Agent and not doing SQL dumps and using the windows agent. If you are using the windows agent to collect dump files, i know its hard for DBA’s to change but i would recommend using the SQL agent instead. 


Kind regards
Albert Williams
 


Onno van den Berg
Community All Star
Forum|alt.badge.img+24

If you isolate your database files to a dedicated disk you can exclude that specific disk while creating VM backups. It would be great if Commvault would introduce a more intelligent methodology.