Is there any possibility to compress the database backup's to save the storage space on backup media ,if so upto how much extent we can compress?.Presently im working with SQl-2K5.Thanks in advance.
Is there any possibility to compress the database backup's to save the storage space on backup media ,if so upto how much extent we can compress?.Presently im working with SQl-2K5.Thanks in advance.
Or... schedule a batch file after the backups already done...
do_compress_bak_files.cmd
@ECHO Compressing BAK files! for %%a in (*.bak) DO ( "C:\Program Files\7-Zip\7z.exe" a -y %%a.7z %%a if errorlevel 1 goto error del %%a :Error move *.7z .\Compressed )
req: 7Zip (www.7-zip.org); cmd.exe; new folder in the backup folder named 'Compressed'
SQL Server 2008 has this ability natively, but in 2005 you will need a 3rd party tool. I personally am quite partial to Red Gate SQL Backup , but there are also competing products. [Edit, forgot the answer the percent question] As always the answer to how much it can be compressed is, it depends on things such as the data structure and the compression setting you use, but to give you a rough idea, I routinely got around 80% compression with SQL Backup.
You could use a non-integrated solution by compressing it after the fact with something like 7-Zip or WinZip though this is likely to give you poor performance compared to the integrated solutions like Red Gate SQL Backup.
I'm a huge fan of HyperBac. Not only do you get compression of backups, but you can browse the backups to pull individual tables or rows from the backup directly, without running a restore.
1 Person is following this question.