mike's web log

 

Blog Search


(Supports AND)

 

Google Ads

 

Technorati

 

Feed

Subscribe to the RSS feed for this blog.

See this post for info on full versus truncated feeds.

 

Quote

The aspects of usage (and mathematics) that really matter are not learned easily and are not learned early.

Geoff Nunberg



 

Navigation






<September 2010>
SMTWTFS
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789


 

25 Most-Visited Entries

 

Categories

  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
 

Blogs I Read

 

Contact

Email me
 

Blog Statistics

Dates
First entry - 6/27/2003
Most recent entry - 8/26/2010

Totals
Posts - 2109
Comments - 2170
Hits - 1,138,425

Averages
Entries/day - 0.80
Comments/entry - 1.03
Hits/day - 434

Update every 30 minutes. Last: 6:46 PM Pacific

 
   |  SQL Server backup

posted at 09:07 AM | | [2] |

The blog runs on MSDE, which is the "desktop" version of SQL Server (and the predecessor to SQL Server Express). I run a backup every night, and to back up the blog database, I use a command like this:
BACKUP DATABASE blog TO DISK = 'c:\blog_bu\dayofweek\blog.dat_bak'
So of course I have 7 backups at any given time. I was looking at my disk stats on the server today and noticed that I seemed to be running a bit low on disk space. I looked through the drive to see where all that space was going, and I noticed that the backup files for the blog database were huge -- like, 2.5 GB each. (And that times 7.)

Long story short, the backup command I've been using appends to the backup file. Every time I back up, the backup files are getting bigger. The solution (a solution) is to add the INIT option to the command, like this:
BACKUP DATABASE blog TO DISK = 'c:\blog_bu\dayofweek\blog.dat_bak' WITH INIT
Much better -- the backup is now in the neighborhood of 35 MB. Whew.

[categories]