Greg's Blog

helping me remember what I figure out

Daily Scheduled Backup to Disk (SQL 6.5)

| Comments

This document is identical in purpose to Daily scheduled backup to disk (SQL 6.5), i.e. it talks you through setting up a scheduled backup of your databases to hard disk, only this time for SQL server 6.5. The process is pretty much the same, the differences are mainly down to the user interface. Whereas SQL Server 7.0 provides with you with MMC (Microsoft Management Console), where as SQL Server 6.5 gives you the Enterprise Manager. Let’s proceed…

Setting up the backup
First off start up the Enterprise Manager, select your server and make sure it is running. Expand the tree of your selected server and right-click on the Backup devices option. From the popup menu choose New Backup Device. This brings up a dialogue where you specify the settings for your backup device. You start of by giving your device a name. Next you can specify the location of your backup device, i.e. either a backup tape or a location on your hard disk. By default the location is <drive letter>:MSSQLBackup. You may have noticed that as you were filling in the name of your device, the final name is allocated dynamically and is the same as the device plus the file extension .bat. Once you are happy with selections, click OK to close the dialogue.

As an aside should you decide to delete the device from the GUI (and for that matter any device, including databases) make sure to manually delete the .bat file from that directory. I guess this is what you call small bug. Onwards…

Highlight your server again and from the menu bar select Tools. From the dropdown menu select the Database backup / Restore option. A dialogue box with the title Database backup / Restore <server name>. Make sure the tab labelled Backup is selected. From the dropdown menu entitled Database Backup, specify the database you wish to backup, for this example choose Pubs. Next you have to initialise the device. Once this is done you can configure a number of options, such as an expiry date for that device. For this exercise, simply accept the default settings. From the Backup device: choose the actual backup device you wish to backup to.

Scheduling the backup
Click on the Schedule button to start configuring you backup schedule. Now you need to specify a six character ANSI-volume label for your backup device, choose the default. Next a new dialogue appears, where you can set your schedule:

  • Give your schedule a Task name, e.g. backup-pubs.
  • Next you can choose a schedule option, i.e. immediate, one time or recurring. Choose recurring.
  • From the ensuing dialogue configure the schedule according to your needs. For example: Occurs daily, the frequency at which the backup occurs (once at 11pm) and duration, in our case set no end date. Click Ok to close that box.

Click OK again and then click close and your scheduled backup is configured. Just as with SQL Server 7.0, make sure that the Scheduler Service or Task Scheduler is running. Also make sure that the SQLExecutive account is running. Right everything should be working fine. Hope this helped in some manner.