Download StarTeam Server Help - Borland Technical Publications

Transcript
SQL Server Differential Database Backups
A differential database backup records only the data that has changed since the last database backup. Frequent
differential backups are recommended to reduce backup times. Making frequent backups decreases the risk of losing
data.
Differential backups restore the data that they contain to the database. Differential backups cannot be used to recover
the database to a point in time.
The availability of a differential backup minimizes the time it takes to roll forward transaction log backups when
restoring a database.
SQL Server Transaction Log Backups
The transaction log is a serial record of all the transactions that have been performed against the database since
the transaction log was last backed up. With transaction log backups, you can recover the database to a specific
point in time or to the point of failure.
When restoring a transaction log backup, SQL Server rolls forward all the changes recorded in the transaction log.
When SQL Server reaches the end of the transaction log, it has recreated the exact state of the database at the time
of the backup operation.
If the database is recovered, SQL Server then rolls back all transactions that were incomplete when the backup
operation started.
Transaction log backups generally use fewer resources than database backups. As a result, you can create them
more frequently than database backups. Frequent backups decrease the risk of losing data. For high volume Online
Transaction Processing (OLTP) environments, it is desirable to create transaction log backups more frequently.
Transaction log backups can only be used with Full and bulk-logged recovery models.
The transaction log cannot be backed up during a full database backup or a differential database backup. However,
the transaction log can be backed up while a file backup is running.
Never backup a transaction log before a database backup is created because the transaction log contains the
changes made to the database after the last backup was created.
Never truncate the transaction log manually because it breaks the backup chain. If a transaction log has been
truncated, take a full database backup to start a new backup chain.
SQL Server File Backups
A file or file group backup consists of the backing up of individual data files (or the files in the file group). A file-based
recovery model increases the speed of recovery by allowing you to restore only the damaged files without restoring
the rest of the database. For example, suppose a database is comprised of several files located physically on different
disks and one disk fails. Only the file on the failed disk needs to be restored and rebuilt using the transaction log
backup.
File backup and restore operations must be used in conjunction with transaction log backups. For this reason, file
backups can only be used with the full recovery and bulk-logged recovery models.
SQL Server Database Backup Recommendations
Borland recommends that you:
♦ Use the full recovery model.
♦ Perform a full database backup once every day. For full database sizes greater than 3 GB, it is okay to perform
full backups on alternate days. If you perform full backups on alternate days, Borland strongly recommends
that you create daily differential backups.
131