To create a backup of the currently active transaction log
Important The transaction log should not be backed up:
Allows the active part of the transaction log to be backed up even if the database is inaccessible, provided that the transaction log file(s) is accessible and undamaged.
The INIT clause is not required if the FORMAT clause is specified.
Important Use extreme caution when using the FORMAT or INIT clauses of the BACKUP statement as this will destroy any backups previously stored on the backup media.
This example backs up the currently active transaction log for the MyNwind database even though MyNwind has been damaged and is inaccessible. The transaction log, however, is undamaged and accessible.
BACKUP LOG MyNwind
TO MyNwind_log1
WITH NO_TRUNCATE
GO
BACKUP | Creating and Applying Transaction Log Backups |
Restoring a Database to a Prior State | Using Differential Database Backups with Transaction Log Backups |
Creating File or Filegroup Backups |