Should We Compress SQL Server Backups? (2024)

Should We Compress SQL Server Backups? (1)

Last week we covered five reasonswhy log shipping should be used. I got a great question that I thought should be answered here in a short blog post. The questionis “how do you configure transactional log shipping to include compression when taking the transactional log backups?”

First, a better question is “should we be compressing our SQL Server Backups?” In a second we will address log shipping, but first I wanted to just focus on compressing backups. The answer is “it depends” (typical DBA response). There is CPU overhead for utilizing compression. We will not focus too much on this here as you can enable resource governor to limit CPU usage for your backups.

Today, we will focus on capacity and misleading storage saving results due to enabling backup compression. Looking at a traditional DBA role, you might have exposure to view your server,drives, and the size of the backups. Therefore, taking a compressed backup leads you to likely see less storage being used for the backup file compared to other backups of the same database. This is typically the goal for backup compression to reduce storage space consumed by backups.

Another question you should be asking yourself is, “What storage system is being used for your SQL Server backups?” For example, storage access networks (SAN) might have its own compression and native SQL Server backup compression might hurt the impact of the SAN’s compression, which could cause more RAW storage to be used. Therefore, there really isn’t a silver bullet to always use SQL Server backup compression in every environment. You need to understand if there is any compression built into the storage used for your backups, and understand how backup compression impacts the storage system before deciding to utilize backup compression.

Okay, now that we got our disclaimer commonreal-world mistake out of the way. Here is how you would enable backup compression for transactional log shipping.

Should We Compress SQL Server Backups? (2)

You can access Log Shipping Settings from Database Properties

Should We Compress SQL Server Backups? (3)

Log Shipping Backup Settings on Primary

Should We Compress SQL Server Backups? (4)

Here are Log Shipping backup compression options.

Enabling backup compression with T-SQL is as simple as just adding the compression option. The following is a common example of backing up a database with compression.

[code language=”sql”] BACKUP DATABASE [LSDemo] TO DISK = N’c:\somewhere\LSDemo.bak’ WITH COMPRESSION [/code]

If all of your backups for an instance of SQL Server go to storage where utilizing native SQL Server compression provides improvement, then you can consider enabling compression by default. Therefore, all backups taken on this instance of SQL Server would then use backup compression by default unless another option was given during the T-SQL execution of the backup command.

[code lang=”sql”]
EXEC sys.sp_configure N’backup compression default’, N’1′
GO
RECONFIGURE WITH OVERRIDE
GO
[/code]

Should We Compress SQL Server Backups? (2024)
Top Articles
Savings Account FAQs | Discover
PitchBook Reviews, Pricing, Pros & Cons 2024
Dragon Age Inquisition War Table Operations and Missions Guide
Davita Internet
Methstreams Boxing Stream
7 Verification of Employment Letter Templates - HR University
Sandrail Options and Accessories
10000 Divided By 5
Tanger Outlets Sevierville Directory Map
Lycoming County Docket Sheets
Lesson 1 Homework 5.5 Answer Key
Spelunking The Den Wow
OpenXR support for IL-2 and DCS for Windows Mixed Reality VR headsets
Northern Whooping Crane Festival highlights conservation and collaboration in Fort Smith, N.W.T. | CBC News
Grab this ice cream maker while it's discounted in Walmart's sale | Digital Trends
Idaho Harvest Statistics
Brett Cooper Wikifeet
Georgia Vehicle Registration Fees Calculator
Sni 35 Wiring Diagram
Loft Stores Near Me
Tyrone Unblocked Games Bitlife
Theater X Orange Heights Florida
Best Transmission Service Margate
Sadie Sink Reveals She Struggles With Imposter Syndrome
January 8 Jesus Calling
27 Modern Dining Room Ideas You'll Want to Try ASAP
Is Light Raid Hard
Fuse Box Diagram Honda Accord (2013-2017)
Taylored Services Hardeeville Sc
Greyson Alexander Thorn
Otis Inmate Locator
Bursar.okstate.edu
L'alternativa - co*cktail Bar On The Pier
Kltv Com Big Red Box
Linabelfiore Of
Montrose Colorado Sheriff's Department
Grapes And Hops Festival Jamestown Ny
Craigslist Pets Huntsville Alabama
The Thing About ‘Dateline’
How much does Painttool SAI costs?
Craigslist Lakeside Az
Jack In The Box Menu 2022
Karen Wilson Facebook
Emily Browning Fansite
City Of Irving Tx Jail In-Custody List
Www.homedepot .Com
Wera13X
M Life Insider
Marion City Wide Garage Sale 2023
Hcs Smartfind
Cataz.net Android Movies Apk
La Fitness Oxford Valley Class Schedule
Latest Posts
Article information

Author: Virgilio Hermann JD

Last Updated:

Views: 5993

Rating: 4 / 5 (41 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Virgilio Hermann JD

Birthday: 1997-12-21

Address: 6946 Schoen Cove, Sipesshire, MO 55944

Phone: +3763365785260

Job: Accounting Engineer

Hobby: Web surfing, Rafting, Dowsing, Stand-up comedy, Ghost hunting, Swimming, Amateur radio

Introduction: My name is Virgilio Hermann JD, I am a fine, gifted, beautiful, encouraging, kind, talented, zealous person who loves writing and wants to share my knowledge and understanding with you.