Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

i-catching solutions
Browse by Tags · View All
SQL Server 26
Script toolbox 16
T-SQL 12
SQL 12
Geniiius 8
SQL Server 2012 7
Performance optimization 6
DMV 5
debugging 5
Debugging 5

Archive · View All
November 2011 6
May 2012 4
April 2012 4
January 2012 4
February 2012 3
March 2012 3
October 2011 2
December 2011 2
September 2012 1
June 2012 1

Geniiius's Blog

Backup compression using IBM TDP for SQL Server

May 15 2012 12:00AM by Geniiius   

If you are using SQL Server 2008 enterprise/datacenter edition, or SQL Server 2008 R2 standard or above, you are in the lucky possition to be able to compress your SQL Server backups. Often I see installations of these versions, where compression is not enabled. Let me show you a couple of ways to do that using the built-in backup features.

Command line

I have a test database called TPCH, and these are the scripts to perform a full backup without compression, and one with compression:

--Backup without compression BACKUP DATABASE [TPCH] TO DISK = 'c:\SQLBackup\TPCH_uncompressed.bak'
GO --Backup with compression BACKUP DATABASE [TPCH] TO DISK = 'c:\SQLBackup\TPCH_compressed.bak' 
WITH COMPRESSION
GO 

To see the difference, I can look in msdb.dbo.backupset, which shows you both the backup_size without compression, as well as the compressed_backup_size:

select 
database_name, 
backup_size, 
compressed_backup_size,
 (backup_size-compressed_backup_size)/backup_size*100 AS SavingsInPercent 
FROM msdb.dbo.backupset 

The output from this is:

image

My first backup show the same value in both backup_size and compressed_backup_size columns, and that is because bacup compression wasn’t enabled. The second one shows two different values, and a calculated saving of 58%. This value varies depending on the content of the database, but it’s not uncommon to see savings in the 80-85% area. Not bad, considering the small effort for enabling it Smiley

GUI

If you are using the GUI to take a manual backup, you will see the standard backup windows. If you go to the Options pane, you will see this:

image

Notice the compression part in the bottom. The default setting is “Use the default server setting”, which is “Do not compress backup”. You can select the “Compress backup”, and achieve the same result as with the “WITH COMPRESSION” in the t-sql script. But hey! If there is a “use the default server setting” option, then how can we change that? Simply right click the sql server, go to properties and open up the “Database Settings” tab:

image

Here you see the “Compress backup” checkbox. If you tick this, the backup’s will automatically be compressed, unless you specifically choose not to perform compression. Pretty nifty!

IBM TDP for SQL Server

If you are using IBM Tivoli Data Protection for SQL Server to perform your database backups, the default server setting above is unfortunately ignored. But if you are running TDP 5.5.4 or newer, you can actually enable it anyways. TDP for SQL Server ususally has the following root directory: c:\progra~1\Tivoli\TSM\TDPSql\ and in here you find TDPSql.cfg. In this file you simply add this line to the bottom:

SQLCOMPression          YES

Now restart your scheduler service, and you are good to go. If you would like to verify your own savings after enabling this, you can use the script from before.

Benefits

There are a few things worth mentioning. If you enable backup compression, you put extra load on the SQL Server cpu, because it needs to perform the compression. But at the same time you offload your network, because you only need to transfer 15-50% of your usual data volume. And with smaller backups you have room to hold more backups on your storage system.

Depending on your setup, the backup and restore speed will probably be a lot better as well. The backups will be faster because you need to transfer and write less data to your destination. And restores will be faster because you need to read and transfer less data from your backup source.


Republished from geniiius.com [45 clicks].  Read the original version here [1 clicks].

Geniiius
133 · 1% · 369
2
 
0
Lifesaver
 
0
Refreshed
 
0
Learned
 
0
Incorrect



Submit

1  Comments  

  • It will be ideal too, to compare the COMPRESSION ratio on backup size with other backup tools. However you need to highlight the reasons that why you cannot COMPRESS the backup in certain situations.

    commented on May 18 2012 2:58AM
    Satya Jayanty (@sqlmaster)
    34 · 5% · 1720

Your Comment


Sign Up or Login to post a comment.

"Backup compression using IBM TDP for SQL Server" rated 5 out of 5 by 2 readers
Backup compression using IBM TDP for SQL Server , 5.0 out of 5 based on 2 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]