Log backup in MS SQL

MSSQL-Feature-Image
How to Log backup in GUI:
  1. Open “SMSS” > expand “Databases” > right-click database > select “Properties”
  2. Select “Options” > make sure “Full” in “Recovery model:”
  3. Right-click database > select “Tasks” > select “Back Up…” 
  4. Select “General” > select “Differential” in “Backup type:”
  5. At “Destination” click “Add…” to add multi backup file.
  6. If we take Log backup out of scheduler, we can click “Copy-only backup” checkbox.
  7. Select “Media Options”, we can select backup to existing media set (Append or Overwrite) or new media set.
  8. There are some “Reliability” setting: “Verify backup when finished”, “Perform checksum before writing to media” and “Coninut on error”
  9. Select “Backup Options”, we can assign the name, description, expire datetime to media set.
  10. We can also verify backup after backup.
  11. We can setup to Compression the backup.
  12. We can encrypt the backup media.
 
How to Log backup in T-SQL:
We will backup LOG of database named “AdventureWorks2016” to media set named “COMP_ENCRYPT_LOG” with 3 backup file with compress and checksum.

Author: Joe Chan