Comprehensive data protection for all workloads
Post Reply
winnie.xu
Lurker
Posts: 1
Liked: never
Joined: Jun 10, 2021 10:04 pm
Full Name: winnie xu
Contact:

Backup and restore SQL Always encrypted database

Post by winnie.xu »

Hi,

We are planning to enable SQL Always encrypted on databases. We would like to find out how Veeam Backup and Replication version 11 would handle the encryption? e.g. What are the configuration required from Veeam backup side to ensure the databases can be backedup and restored.

Thanks
Winnie
HannesK
Product Manager
Posts: 14322
Liked: 2890 times
Joined: Sep 01, 2014 11:46 am
Full Name: Hannes Kasparick
Location: Austria
Contact:

Re: Bakcup and restore SQL Always encrypted database

Post by HannesK »

Hello,
and welcome to the forums.

It just works because we use native SQL APIs for backup (post321557.html#p321557)

I remember situations where manual certificate export is needed https://www.veeam.com/kb2006

Best regards,
Hannes
great_vc
Enthusiast
Posts: 90
Liked: 13 times
Joined: Apr 20, 2016 12:30 pm
Full Name: Vassilis
Contact:

Re: Backup and restore SQL Always encrypted database

Post by great_vc »

Hi,
Hannes, that is not the case for us.
we have a AG Cluster SQL with TDE and it fails with error: Error: VSSControl: Failed to freeze guest over network, wait timeout
Unable to release guest. Error: VSSControl: Failed to freeze guest over network, wait timeout

yes, i have change the registry entry, i'm prety sure it is not a timeout but the TDE cause i test this
Backup the same VM without application awareness and it completed successfully.
Once i enable application awareness and SQL i get that error after 5 minutes.

I see on the VCENTER the snapshot created in seconds and deleted in seconds.

Any more ideas ?
B&R v12, Suite
PetrM
Veeam Software
Posts: 3264
Liked: 528 times
Joined: Aug 28, 2013 8:23 am
Full Name: Petr Makarov
Location: Prague, Czech Republic
Contact:

Re: Backup and restore SQL Always encrypted database

Post by PetrM » 1 person likes this post

Hi Vassilis,

It looks like a technical issue which must be investigated by our support team. At first sight, I'd say that it cannot be fixed at the level of our code as the error happens at the level of VSS which comes into action as per request of the backup application. Anyway, I'd let our support team to dig deeper into it. Please provide us with a support case ID. In the meantime, you may have a look at this KB and also check Windows application event logs on the SQL server.

Thanks!
great_vc
Enthusiast
Posts: 90
Liked: 13 times
Joined: Apr 20, 2016 12:30 pm
Full Name: Vassilis
Contact:

Re: Backup and restore SQL Always encrypted database

Post by great_vc » 1 person likes this post

Yes, i believe a support ticket will be the next step first thing tomorrow.
As i manage to backup both disks C: and E: (which contains the databases) without Application Awareness so it is not the VSS.

thank you PetrM
B&R v12, Suite
PetrM
Veeam Software
Posts: 3264
Liked: 528 times
Joined: Aug 28, 2013 8:23 am
Full Name: Petr Makarov
Location: Prague, Czech Republic
Contact:

Re: Backup and restore SQL Always encrypted database

Post by PetrM »

I'd say it's vice versa: VSS is not invoked without AAIP, that's why a job works with AAIP disabled. Anyway, let's wait for what our engineers can figure out.

Thanks!
BassFisher
Novice
Posts: 3
Liked: never
Joined: Feb 03, 2022 3:59 pm
Full Name: Mark Elsen
Contact:

Re: Backup and restore SQL Always encrypted database

Post by BassFisher »

I'm testing restoring an encrypted dB from one server to another and the restore is failing. I made sure the same MASTER KEY ENCRYPTION BY PASSWORD = 'XXXXXXX' is the same on both servers the and ENCRYPTION BY SERVER CERTIFICATE Veeam_SQL_Certificate was the same as well. I got the error message "Failed to restore databases: Cannot find server certificate with thumbprint Object"

Any ideas as to how and make restoring an encrypted dB to another server work?
Dima P.
Product Manager
Posts: 14417
Liked: 1576 times
Joined: Feb 04, 2013 2:07 pm
Full Name: Dmitry Popov
Location: Prague
Contact:

Re: Backup and restore SQL Always encrypted database

Post by Dima P. »

Hello Mark,

Please check the solution described in this KB article: Restoring Encrypted Databases with VESQL. If that does not help please raise a support case and share your case ID with us. Thank you!
BassFisher
Novice
Posts: 3
Liked: never
Joined: Feb 03, 2022 3:59 pm
Full Name: Mark Elsen
Contact:

Re: Backup and restore SQL Always encrypted database

Post by BassFisher »

Ok Thanks. I'll take a look at it
BassFisher
Novice
Posts: 3
Liked: never
Joined: Feb 03, 2022 3:59 pm
Full Name: Mark Elsen
Contact:

Re: Backup and restore SQL Always encrypted database

Post by BassFisher »

So I would have to have Enterprise edition of Microsoft SQL Server installed ONLY on the staging server? or would it also be the Veeam SQL server? (or is it any server I want TDE)

Transparent Data Encryption requires the Enterprise edition of Microsoft SQL Server; this also applies to the staging server.
Andreas Neufert
VP, Product Management
Posts: 6749
Liked: 1408 times
Joined: May 04, 2011 8:36 am
Full Name: Andreas Neufert
Location: Germany
Contact:

Re: Backup and restore SQL Always encrypted database

Post by Andreas Neufert »

Only on the staging server.
Post Reply

Who is online

Users browsing this forum: No registered users and 135 guests