Differences in Backup Sizes

This is a discussion on Differences in Backup Sizes within the db2-udb forums in Other Databases category; I have enabled Automatic Backup on a Db2 Database (Windows Server 2003) and also sometimes run a scripted backup using the following commands db2 backup database FRED to d:db2_backups with 2 buffers buffer 1024 paralleism 1 compress without prompting My question related to the sizes of the backups The Automated Backup is 48Mb The scripted backup of the same Database is 12Mb If I remove the compression in the scripted backup the resulting size is 32Mb Is there really any difference in the contents of the backups and is it just the compression of the scripted backup that makes ...

Go Back   Database Forum > Other Databases > db2-udb

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 01-17-2007, 12:13 PM
Default Differences in Backup Sizes

I have enabled Automatic Backup on a Db2 Database (Windows Server 2003) and also sometimes run a scripted backup using the following commands

db2 backup database FRED to d:\db2_backups with 2 buffers buffer 1024 paralleism 1 compress without prompting

My question related to the sizes of the backups

The Automated Backup is 48Mb
The scripted backup of the same Database is 12Mb
If I remove the compression in the scripted backup the resulting size is 32Mb

Is there really any difference in the contents of the backups and is it just the compression of the scripted backup that makes a difference?


Reply With Quote
  #2  
Old 01-17-2007, 12:32 PM
Default Re: Differences in Backup Sizes

The automated backup will use the autonomic feature of backup to select the optimal buffer size, number of buffers and parallelisms. This difference in buffersize is what accounts for the different image sizes.

Try removing the buffers, buffer and parallelism options off of your backup script and the resulting sizes should be very very close to each other.

Dale McInnis
Reply With Quote
  #3  
Old 01-18-2007, 03:16 AM
Default Re: Differences in Backup Sizes

Thanks Dale,
I took your suggestion and after a bit of experimentation I get the following

backup no options 61.8Mb
backup compress only 11.2Mb
backup 2 buffers parallelism 1 44Mb
backup 1 buffers parallelism 1 49Mb

I wouldn't like to even start to understand why these differences in command make such a difference on the size of the backup but at least I got to something pretty close to the filesize obtained from the automatic backup.

Now if only that file could be automatically compressed. That would help.
The above tests were done on a sample Database. The real DB produces a 1.6Gb file with the Auto Backup process. the corresponding Database backup is only 160Mb with my scripted backup. I guess we will stop the automatic backup.

Thanks again

Reply With Quote
  #4  
Old 01-19-2007, 03:10 PM
Default Re: Differences in Backup Sizes

The reason your automatic backup is larger is that as of v 8.2 we added the DB2BACKUP_INCLUDE_LOGS option on by default. This is not the default for user invoked backups.
So the automatic backup will include the active log set.

Dale
Reply With Quote
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 05:46 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Integrated by bbpixel2009 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.