Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 High Availability (2005)
 External Backup keeps throwing error message

Author  Topic 

jay1
Starting Member

17 Posts

Posted - 2010-08-21 : 03:58:40
Hi all,

I have been backing up the same 10 databases with differential backups on the daily biases for about a month and last night, one of the databases failed to back up with the following error messages:

112(error not found) [SQLSTATE 42000] (Error 3202) BACKUP DATABASE is terminating abnormally. [SQLSTATE 42000] (Error 3013). The step failed.

Would someone be able to let me know why this would happen just suddenly?

Thank you

jeffw8713
Aged Yak Warrior

819 Posts

Posted - 2010-08-21 : 21:22:36
Error 112 is disk out of space. Are you backing up your differentials to the same file and appending (WITH NOINIT)?

When, and how often - do you perform full backups and transaction log backups?
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2010-08-22 : 09:12:44
Also asked (and with lots of discussion) here: http://www.sqlservercentral.com/Forums/Topic953803-357-1.aspx

--
Gail Shaw
SQL Server MVP
Go to Top of Page

jay1
Starting Member

17 Posts

Posted - 2010-08-23 : 11:39:23
Thank you for your reply. I am using the following script only
BACKUP DATABASE 'Databasename'
TO DISK = 'E:\'filename'.BAK' WITH DIFFERENTIAL

I am running the job daily, for all 10 Databases and I don't perform any transaction log backup.

Thank you.
Go to Top of Page

jeffw8713
Aged Yak Warrior

819 Posts

Posted - 2010-08-23 : 22:10:48
That command will append your backups to the same file - and that file will continue to grow until you run out of space on your disk.

A better method would be to make sure you use a different file for each backup. Generally, this is done by using a date/time stamp on the filename - and then using a utility to delete old backup files after some period.

If your databases are set with full recovery model - you are going to end up running out of space for your logs. In full recovery model, you have to perform frequent transaction log backups (at least every hour, if not more often). If your databases are in simple recovery - then you are okay and don't need to perform transaction log backups.
Go to Top of Page

jay1
Starting Member

17 Posts

Posted - 2010-08-24 : 05:09:46
quote:
Originally posted by jeffw8713

That command will append your backups to the same file - and that file will continue to grow until you run out of space on your disk.

A better method would be to make sure you use a different file for each backup. Generally, this is done by using a date/time stamp on the filename - and then using a utility to delete old backup files after some period.

If your databases are set with full recovery model - you are going to end up running out of space for your logs. In full recovery model, you have to perform frequent transaction log backups (at least every hour, if not more often). If your databases are in simple recovery - then you are okay and don't need to perform transaction log backups.



All the Databases are set to Simple recovery. I was wondering if using Incremental back up would be any better or not please?

Thank you.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-08-24 : 06:37:40
quote:
Originally posted by jay1

quote:
Originally posted by jeffw8713

That command will append your backups to the same file - and that file will continue to grow until you run out of space on your disk.

A better method would be to make sure you use a different file for each backup. Generally, this is done by using a date/time stamp on the filename - and then using a utility to delete old backup files after some period.

If your databases are set with full recovery model - you are going to end up running out of space for your logs. In full recovery model, you have to perform frequent transaction log backups (at least every hour, if not more often). If your databases are in simple recovery - then you are okay and don't need to perform transaction log backups.



All the Databases are set to Simple recovery. I was wondering if using Incremental back up would be any better or not please?

Thank you.



You can't run an incremental backup when the database is using SIMPLE recovery model. Whether or not it is better depends on your data recovery requirement. We run full backups, differential backups, and incremental backups (tlog). So we run all 3 types.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

jay1
Starting Member

17 Posts

Posted - 2010-08-24 : 06:56:09
quote:
Originally posted by tkizer

quote:
Originally posted by jay1

quote:
Originally posted by jeffw8713

That command will append your backups to the same file - and that file will continue to grow until you run out of space on your disk.

A better method would be to make sure you use a different file for each backup. Generally, this is done by using a date/time stamp on the filename - and then using a utility to delete old backup files after some period.

If your databases are set with full recovery model - you are going to end up running out of space for your logs. In full recovery model, you have to perform frequent transaction log backups (at least every hour, if not more often). If your databases are in simple recovery - then you are okay and don't need to perform transaction log backups.



All the Databases are set to Simple recovery. I was wondering if using Incremental back up would be any better or not please?

Thank you.



You can't run an incremental backup when the database is using SIMPLE recovery model. Whether or not it is better depends on your data recovery requirement. We run full backups, differential backups, and incremental backups (tlog). So we run all 3 types.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog



All the Databases are set to Simple recovery so is the best solution the one that @@jeffw8713 suggested; which is to use a different file for each backup or are there another options.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-08-24 : 06:58:52
Yes the best solution is to put them into separate files. We run full backups daily, differentials 12 hours after the full backup, and incrementals every 15 minutes. So we have a lot of backup files each day.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-08-27 : 13:13:29
If you want a robust backup solution, then use my custom script: http://weblogs.sqlteam.com/tarad/archive/2009/12/29/Backup-SQL-Server-2005-and-2008-DatabasesAgain.aspx

It'll handle deleting older files, full backups, differential backups, transaction log backups, etc...

Here's how most of my production systems are configured: http://weblogs.sqlteam.com/tarad/archive/2008/06/30/SQL-Server-jobs-on-production-instances.aspx

The only thing not mentioned in that link are the differential backups, which I've got setup on a few systems. We run diffs 12 hours after the full backup typically.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -