SQL Database backup size too big

(imported topic written by amitspradhan)

Hi,

I am scheduling the backup of the database using the legacy SQL database backup method. I am not good at databases, but have scheduled it by refereing to the KB documents on the big fix support site.

T

he backed up database is approx 24 GB. I presume this is too big of size.

I am currently backing up the BES reporting and the BES enterprise database.

The current machine count is 2000.

Can any one help me in understanding if I am doing anything wrong? Or the database size is usually that big.

Amit

(imported comment written by BenKus)

Hi Amit,

If you right-click on your database and choose “Properties”, can you let me know the size of the database and the size of the transaction log?

Ben

(imported comment written by amitspradhan)

BES Reporting

Database size: 1.75 MB

Transaction Log: 768KB

BF Enterprise

Database size: 741 MB

Transaction Log: 146 MB

(imported comment written by BenKus)

Hi Amit,

It looks like your database is <1 GB, which seems reasonable… Where are you seeing the 24 GB?

Ben

(imported comment written by amitspradhan)

Hi Ben,

I have scheduled a SQL backup of this database on to the local HDD. The folder which contains this backed up database is then backed up onto our corporate Veritas Server.

The total size of the backed up database folder is almost 24 GB.

Amit

(imported comment written by Aram_Eblighatian)

Amit,

It seems that the BigFix database sizes in MS SQL are in fact reasonable as Ben suggests. Individual database backups shouldn’t really be much larger than the allocated space. Perhaps the SQL Backup job is configured to ‘Append to Media’ as opposed to ‘Overwrite existing media’ (this would essentially append the backup to the existing media set to allow you to restore your database from various backup points). Can you confirm the MS SQL backup type/configuration for us?

(imported comment written by amitspradhan)

Hi Aram,

Not sure, but logically thinking I had selected “Append to Media”, How do I check my previous configurations, If I go to the scheduled jobs, I do not see anything which should tell me about my previous set options.

Amit

(imported comment written by Aram_Eblighatian)

Amit,

I’m assuming you’re using MS SQL 2000? Depending on how you set up the backup (maintenance plan versus scheduled job), there are different ways to check:

Maintenance Plan: In SQL Enterprise Manager, go to Management -> Database Maintenance Plans. Is there a maintenance plan that is performing your database backup? If so, right-click on the maintenance plan, and go to the ‘Complete Backup’ tab. Here we can get some information as to how the backups are run/stored. Is the ‘Remove files older than’ check mark checked? Is there a value specified? In this case, MS SQL server will have separate backup files for each time the maintenance plan is run, but can be configured to remove the older backup files to ensure the backup history does not grow uncontrollably. Note that this is somewhat different than the ‘Append to Media’ option I’d described in my previous post as it stores the various backups in separate files as opposed to appending the backup points to the same set. Perhaps this explains why your backup folder is so much larger than your database size?

If the backup was not configured through a maintenance plan, let’s check the scheduled jobs.

Scheduled Job: In management -> SQL Server Agent -> jobs, right-click on the job performing the database backup and go to the ‘Steps’ tab. Double-click the first step, and paste the command into the forum please. Then we might be able to determine it’s configuration, and perhaps suggest an alternate method should disk space be a concern.

Thanks!

(imported comment written by amitspradhan)

I am using the Scheduled Job:

For BF Enterpirse -

BACKUP DATABASE

BFEnterprise

TO DISK = N’D:\SQL_BigFix_Database\BFEnterprise’ WITH NOINIT , NOUNLOAD , NAME = N’BFEnterprise backup’, SKIP , STATS = 10, DESCRIPTION = N’BFEnterprise backup’, NOFORMAT

For BES Reporting -

BACKUP DATABASE

BESReporting

TO DISK = N’D:\SQL_BigFix_Database\BESReporting’ WITH NOINIT , NOUNLOAD , NAME = N’BESReporting backup’, SKIP , STATS = 10, DESCRIPTION = N’BESReporting backup’, NOFORMAT

(imported comment written by SystemAdmin)

Hi Amit,

Your backup job is indeed set to append to the existing backup. Basically, every time your backup runs it eats up another gig of disk space on the backup file.

http://msdn2.microsoft.com/en-us/library/ms186865.aspx

There is a check box to turn on or off appending versus overwriting in the SQL wizard for setting up backups. If you can’t see how to do it through the maintenance plans you may need to stop the existing backup job and recreate it.

(imported comment written by twisty77491)

I have a BES database that is 17tb, I only have 40 users and Im having trouble backing the database up. Can anyone give me a hand trying to get this DB down to size?

(imported comment written by SystemAdmin)

Have you tried shrinking the database?

Could you give information on the size of the data file, the transaction log and the backup files?

(imported comment written by jordan91)

The folder which contains this backed up database is then backed up onto our corporate Veritas Server.