How to Backup a MSSQL Database

  • After connecting to the appropriate instance of the Microsoft SQL Server Database Engine, in Object Explorer, click the server name to expand the server tree.
  • Expand Databases, and depending on the database, either select a user database or expandSystem Databases and select a system database.
  • Right-click the database, point to Tasks, and then click Back Up. The Back Up Database dialog box appears.
  • In the Database list box, verify the database name. You can optionally select a different database from the list.
  • You can perform a database backup for any recovery model (FULLBULK_LOGGED, or SIMPLE).
  • In the Backup type list box, select Full.Note that after creating a full database backup, you can create a differential database backup
  • Optionally, you can select Copy Only Backup to create a copy-only backup. A copy-only backup is a SQL Server backup that is independent of the sequence of conventional SQL Server backups.
    ms187510.note(en-us,SQL.100).gifNote:
    When the Differential option is selected, you cannot create a copy-only backup.
  • For Backup component, click Database.
  • Either accept the default backup set name suggested in the Name text box, or enter a different name for the backup set.
  • Optionally, in the Description text box, enter a description of the backup set.
  • Specify when the backup set will expire and can be overwritten without explicitly skipping verification of the expiration data:
    • To have the backup set expire after a specific number of days, click After (the default option), and enter the number of days after set creation that the set will expire. This value can be from 0 to 99999 days; a value of 0 days means that the backup set will never expire.
      The default value is set in the Default backup media retention (in days) option of the Server Propertiesdialog box (Database Settings Page). To access this, right-click the server name in Object Explorer and select properties; then select the Database Settings page.
    • To have the backup set expire on a specific date, click On, and enter the date on which the set will expire.
  • Choose the type of backup destination by clicking Disk or Tape. To select the paths of up to 64 disk or tape drives containing a single media set, click Add. The selected paths are displayed in the Backup to list box.To remove a backup destination, select it and click Remove. To view the contents of a backup destination, select it and click Contents.
  • To view or select the advanced options, click Options in the Select a page pane.mssql
  • Select an Overwrite Media option, by clicking one of the following:
    • Back up to the existing media set
      For this option, click either Append to the existing backup set or Overwrite all existing backup sets.
      Optionally, select Check media set name and backup set expiration to cause the backup operation to verify the date and time at which the media set and backup set expire.
      Optionally, enter a name in the Media set name text box. If no name is specified, a media set with a blank name is created. If you specify a media set name, the media (tape or disk) is checked to see whether the actual name matches the name you enter here.
    • Back up to a new media set, and erase all existing backup sets
      For this option, enter a name in the New media set name text box, and, optionally, describe the media set in the New media set description text box.
  • In the Reliability section, optionally check:
    • Verify backup when finished.
    • Perform checksum before writing to media, and, optionally, Continue on checksum error.
  • If you are backing up to a tape drive (as specified in the Destination section of the General page), the Unload the tape after backup option is active. Clicking this option activates the Rewind the tape before unloading option.
    ms187510.note(en-us,SQL.100).gifNote:
    The options in the Transaction log section are inactive unless you are backing up a transaction log (as specified in the Backup type section of the General page).
  • SQL Server 2008 Enterprise and later supports backup compression. By default, whether a backup is compressed depends on the value of the backup-compression default server configuration option. However, regardless of the current server-level default, you can compress a backup by checking Compress backup, and you can prevent compression by checking Do not compress backup.

SecureWebs.com
PO Box 377
Kettle Falls, WA. 99141 USA
(509) 684-2511 - (866) 736-1217
Copyright ©2013 - All Rights Reserved.