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 2000 Forums
 SQL Server Administration (2000)
 BP-backup master, model, etc. or no?

Author  Topic 

Sidster
Starting Member

7 Posts

Posted - 2008-08-28 : 03:00:29
Hi - I'm one of those "involuntary DBA's" at my company and am trying to learn the general concepts of databases and db administration at the same time.

I support an application that runs on MSDE and SQL Server 2000/05/Express. My question is this: Is it necessary (a best practice) to backup all files in the Data folder (i.e. Master, Model, etc.) or is it safe to backup just our application's db (which consists of one mdf and one ldf file)?

Keep in mind any worst case scenario where, after rebuilding a server and installing the same instance name, we would basically drop in the two files after stopping the service. Does this corrupt the new master MDF file in any way? Should I be running any procedures to synch the master db with the restored application db?

The db size is relatively small (under 2GB) so we are advising our customers to stop the service and backup the two files every night.

Thank you in advance,
Sid.

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2008-08-28 : 04:15:22
You should back up the system databases (master, model, msdb) the same way you back up the user databases.

Both should be backed up using SQL's backup function, not by backing up the mdf and ldf files.

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

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-08-28 : 14:47:35
"The db size is relatively small (under 2GB) so we are advising our customers to stop the service and backup the two files every night."


You don't have to stop service.
Go to Top of Page

Sidster
Starting Member

7 Posts

Posted - 2008-08-29 : 00:40:50
Thank you for your help.

Can I trouble you to explain why we should be backing up everything?

Sid.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-08-29 : 01:15:59
Because not all of your information is stored in your database. For instance, the logins are stored in master. In model is the default template for new databases. In msdb are things such as jobs and operators.

You can use my script which gives you the option of backing them all up, just the user custom databases, or just the system ones. We have 3 different jobs for backups. One for full backups of the user database, one for full backups of the system databases, and backing up the transaction log of the user databases every 15 minutes.

Here is my backup script:
http://weblogs.sqlteam.com/tarad/archive/2008/08/19/Backup-SQL-Server-Databases.aspx

Here are all of my maintenance routines:
http://weblogs.sqlteam.com/tarad/archive/2004/07/02/1705.aspx

And here's what my environments look like:
http://weblogs.sqlteam.com/tarad/archive/2008/06/30/SQL-Server-jobs-on-production-instances.aspx

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 - 2008-08-29 : 01:17:46
Also, your current backup scheme is known as cold backups. This causes downtime and is unnecessary. Hot backups are recommended and cause no downtime. We use hot backups for several mission critical databases that are expected to be up 99.999% of the time each year. We measure downtime in a year in the minutes.

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 - 2008-08-29 : 01:23:58
One last thing, if your customers have any SQL Server knowledge, they will know that you don't have much experience with SQL Server if you are recommending that they stop the service each night and copy the database files. They might not think very highly of the product if they don't think you have the knowledge on the backend. There are plenty of vendors out there like this, don't be one of them!

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 -