Show TOC

Creating a Full BackupLocate this document in the navigation structure

Run a full backup to back up both the database file and the transaction log.

Prerequisites

You have the BACKUP DATABASE and VALIDATE ANY OBJECT system privileges.

Context

The backup copies of the database file and transaction log file have the same names as the online versions of these files. For example, if you make a backup of the database created during installation, the backup copies are called esp_cluster.db and esp_cluster.log. When you repeat the backup statement, choose a new backup directory to avoid overwriting the backup copies.

Procedure

  1. Connect to the database.
  2. Validate the database to ensure that it is not corrupt. You can use the Validation utility, the sa_validate stored procedure, or the VALIDATE DATABASE statement.
  3. Make a backup of your database and the transaction log. For example, use the BACKUP command.

Results

A full backup of your database file and the transaction log is created.

Example

The following statement creates a full backup of the database in the directory C:\temp\backup:

BACKUP DATABASE
DIRECTORY 'c:\\temp\\backup'