Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Database backup Expand / Collapse
Author
Message
Posted Friday, April 24, 2009 7:09 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Tuesday, July 29, 2014 9:21 AM
Points: 1,602, Visits: 1,572
Hi,
I have some issue regarding database backup.
I am taking backup of full backup of my database every 2 hour.
Differential backup every 1 hour.
Transaction log backup every 15 min.
If I dont do anything in my database, then backup file should remain condtant each time. But each time transaction log backup is growing. In the maintenance plan I have mentioned as the transaction log file as overwrite. Can anyone tell me what is the problem?







Ryan
//All our dreams can come true, if we have the courage to pursue them//
Post #703919
Posted Friday, April 24, 2009 7:14 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 5:50 AM
Points: 40,209, Visits: 36,618
Hang on.

You're backing the transaction log up every 15 min, writing to the same file and specifying overwrite? Is that correct?

Why full backups ever 2 hours? That's awfully frequent, especially with a diff every hour.



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #703923
Posted Friday, April 24, 2009 8:49 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Wednesday, October 22, 2014 12:34 PM
Points: 31,181, Visits: 15,626
You transaction log backup should not be growing if you are not changing data. If it is, I can only assume that transactions are being added to the database, inserts, updates, deletes, something.

How are you specifying the backups?







Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #704027
Posted Friday, April 24, 2009 8:55 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Tuesday, July 29, 2014 9:21 AM
Points: 1,602, Visits: 1,572
This is testing purpose in testing region. But actually it wiil be one full back up per day, differential back every 4 hour and transaction log every 1 hour. Actual problem is to the growing size of the transaction log though there is no transaction is performed. Two options are available in back up 1. Append and 2. overwrite to the file.
So my question is why the transaction log is growing with any of the option? Full backup file and differential back up file is not grwing for the same option overwrite when no transaction is performed.


Ryan
//All our dreams can come true, if we have the courage to pursue them//
Post #704036
Posted Friday, April 24, 2009 9:40 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 5:50 AM
Points: 40,209, Visits: 36,618
One thing I would like to get clear.

Are you backing up the transaction log to the same file every time?
Do you have the overwrite option specified?



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #704085
Posted Friday, April 24, 2009 9:55 AM
SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Thursday, October 2, 2014 12:09 PM
Points: 4,358, Visits: 9,538
Are you backing up to a device - or a file? How is this being selected?

What Gail was trying to get at is that overwriting an existing file destroys any maintenance plan you setup. What good is a transaction log backup if it only contains the currently backed up transaction log? You won't be able to restore the system because you are now missing the previous transaction log backup.

If you are also overwriting the differential backup - you have the same problem. As well as overwriting the full. To understand better, what is going to happen if you have to restore the system to 10:50am, but your differential backup ran at 11:00am and overwrote the previous differential backup that was run at 10:00am? Add in the fact that you have overwritten the transaction log backups and you don't have a method of restoring to that point in time. The best you can do is restore to the latest differential.


Jeffrey Williams
Problems are opportunites brilliantly disguised as insurmountable obstacles.

How to post questions to get better answers faster
Managing Transaction Logs
Post #704102
Posted Friday, April 24, 2009 10:07 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Today @ 5:50 AM
Points: 40,209, Visits: 36,618
Jeffrey Williams (4/24/2009)
What Gail was trying to get at is that overwriting an existing file destroys any maintenance plan you setup.

Note to self. Get to the point...,

The best you can do is restore to the latest differential.

Providing that the full backup that was the base for that diff is still available.



Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #704111
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse