SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Using Encrypted Backups in SQL Server 2014


Using Encrypted Backups in SQL Server 2014

Author
Message
Perry Whittle
Perry Whittle
SSC Guru
SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)

Group: General Forum Members
Points: 92039 Visits: 17972
Comments posted to this topic are about the item Using Encrypted Backups in SQL Server 2014

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
george sibbald
george sibbald
SSC-Dedicated
SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)

Group: General Forum Members
Points: 39656 Visits: 13702
Perry, thanks for the article.

If you have a test server on which you may restore backups from multiple prod servers how is that handled? Do you need to copy down the certificate from each prod server to a different location on the test server, or do you go for using a password instead and using the same password across your environment.



p.s. might be a line comment missing from the restore TSQL shown?

---------------------------------------------------------------------
Perry Whittle
Perry Whittle
SSC Guru
SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)

Group: General Forum Members
Points: 92039 Visits: 17972
george sibbald (5/15/2014)
Perry, thanks for the article.

If you have a test server on which you may restore backups from multiple prod servers how is that handled? Do you need to copy down the certificate from each prod server to a different location on the test server, or do you go for using a password instead and using the same password across your environment.


Take this scenario

I have ServerA with 1 default instance and database called BOB, backups for BOB are protected by the server certificate BobsBackups
I have ServerB with 1 default instance and database called FRED, backups for FRED are protected by the server certificate FredsBackups
I have ServerC with 1 default instance which is a test server, i want to restore to this test server backups of BOB and FRED.

I need to backup the cert BobsBackups on ServerA and also the cert FredsBackups on ServerB. On ServerC i then create the certs from the backup files using the CREATE CERT ... FROM FILE ....


Is this the scenario you were thinking of?



george sibbald (5/15/2014)
p.s. might be a line comment missing from the restore TSQL shown?

not sure what you mean by this

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
george sibbald
george sibbald
SSC-Dedicated
SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)

Group: General Forum Members
Points: 39656 Visits: 13702
Perry,

yes thats the scenario.



Above the line 'When restoring the certificate backup, if you wish to encrypt by password, uncomment the line above.' - there were no comments in the code for the restore? Just wanted to clarify that, i might have misunderstood.

---------------------------------------------------------------------
Perry Whittle
Perry Whittle
SSC Guru
SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)

Group: General Forum Members
Points: 92039 Visits: 17972
ah right i see, yes it was commented out :-(
I've asked Steve to fix this

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
Divine Flame
Divine Flame
SSCertifiable
SSCertifiable (6.6K reputation)SSCertifiable (6.6K reputation)SSCertifiable (6.6K reputation)SSCertifiable (6.6K reputation)SSCertifiable (6.6K reputation)SSCertifiable (6.6K reputation)SSCertifiable (6.6K reputation)SSCertifiable (6.6K reputation)

Group: General Forum Members
Points: 6601 Visits: 2816
Nice article Perry. Thanks for sharing.


Sujeet Singh
Perry Whittle
Perry Whittle
SSC Guru
SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)

Group: General Forum Members
Points: 92039 Visits: 17972
Divine Flame (5/15/2014)
Nice article Perry. Thanks for sharing.

Thank you, you're welcome

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
Perry Whittle
Perry Whittle
SSC Guru
SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)SSC Guru (92K reputation)

Group: General Forum Members
Points: 92039 Visits: 17972
george sibbald (5/15/2014)
p.s. might be a line comment missing from the restore TSQL shown?

This has now been fixed

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
george sibbald
george sibbald
SSC-Dedicated
SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)SSC-Dedicated (39K reputation)

Group: General Forum Members
Points: 39656 Visits: 13702
thanks, and thanks once again for the article.

Its nice that this feature is included in the standard edition as well.

---------------------------------------------------------------------
thierry.vandurme
thierry.vandurme
SSCommitted
SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)SSCommitted (1.7K reputation)

Group: General Forum Members
Points: 1667 Visits: 566
Perry Whittle (5/15/2014)
george sibbald (5/15/2014)
Perry, thanks for the article.

If you have a test server on which you may restore backups from multiple prod servers how is that handled? Do you need to copy down the certificate from each prod server to a different location on the test server, or do you go for using a password instead and using the same password across your environment.


Take this scenario

I have ServerA with 1 default instance and database called BOB, backups for BOB are protected by the server certificate BobsBackups
I have ServerB with 1 default instance and database called FRED, backups for FRED are protected by the server certificate FredsBackups
I have ServerC with 1 default instance which is a test server, i want to restore to this test server backups of BOB and FRED.

I need to backup the cert BobsBackups on ServerA and also the cert FredsBackups on ServerB. On ServerC i then create the certs from the backup files using the CREATE CERT ... FROM FILE ....


Is this the scenario you were thinking of?


Perry, may sound like a stupid question but the certificates you create on the test server don't have to be the same name as on the source servers, right? I'm asking because of what would happen if the certificates on ServerA and ServerB had the same name.
Thx
Thierry


george sibbald (5/15/2014)
p.s. might be a line comment missing from the restore TSQL shown?

not sure what you mean by this

Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search