Guide

SQL Server backup types: full vs differential vs transaction log

SQL Server has three backup types you will use every day: a full backup copies the whole database, a differential copies only what changed since the last full, and a transaction log backup copies the log records since the previous log backup. Which ones you can use depends on the database's recovery model, and together they decide how much data you can lose and how long a restore takes.

The three main backup types

TypeContainsSize and speedRestores on its own?
FullAll data pages plus enough log to make the copy consistentLargest, slowestYes
DifferentialExtents changed since the last full backup (cumulative)Grows through the weekNo — needs its base full backup
Transaction logLog records since the previous log backupUsually small and quickNo — needs full (+ diff) and every log in sequence

In T-SQL, the three look like this:

-- Full backup
BACKUP DATABASE [Sales]
  TO DISK = N'D:\SQLBackups\Sales_FULL_2026-09-27.bak'
  WITH CHECKSUM, INIT, STATS = 10;

-- Differential backup (changes since the last full)
BACKUP DATABASE [Sales]
  TO DISK = N'D:\SQLBackups\Sales_DIFF_2026-09-29.bak'
  WITH DIFFERENTIAL, CHECKSUM, INIT;

-- Transaction log backup (FULL or BULK_LOGGED recovery model only)
BACKUP LOG [Sales]
  TO DISK = N'D:\SQLBackups\Sales_LOG_2026-09-29_1030.trn'
  WITH CHECKSUM, INIT;

CHECKSUM makes SQL Server verify page checksums while it reads, so a corrupt page fails the backup instead of being copied silently. Compression (WITH COMPRESSION) is available on Standard and Enterprise but not on Express or Web.

Other backup types worth knowing

  • Copy-only (WITH COPY_ONLY) — a full or log backup that doesn't affect the differential base or the log chain. Use it for one-off copies, for example to hand a database to a developer.
  • Tail-log backup (BACKUP LOG ... WITH NORECOVERY) — captures the last transactions before you restore over a damaged database.
  • File and filegroup backups — for very large databases split across filegroups; rarely needed by small teams.

Recovery models decide what you can back up

Recovery modelLog backupsPoint-in-time restoreTypical use
SIMPLENot possible — log truncates automaticallyNo; restore to the last full/diff onlyDev/test, or data you can re-enter
FULLRequired, or the log grows foreverYes, to any moment covered by log backupsBusiness data: billing, ERP, orders
BULK_LOGGEDRequiredNot within a log backup that contains bulk operationsTemporarily, during large imports
-- Which recovery model is each database using?
SELECT name, recovery_model_desc FROM sys.databases;

-- Switch to FULL, then take a full backup to start the log chain
ALTER DATABASE [Sales] SET RECOVERY FULL;
BACKUP DATABASE [Sales] TO DISK = N'D:\SQLBackups\Sales_FULL.bak' WITH CHECKSUM, INIT;

Rule of thumb

If losing a day of transactions is acceptable, SIMPLE with nightly full (and optional differential) backups is fine. If it isn't, use FULL and take log backups every 15–60 minutes.

A sample backup schedule

Two numbers drive your schedule: the RPO (how much data you can afford to lose) and the RTO (how long a restore may take). For a typical business database of a few GB to a few hundred GB in the FULL recovery model:

BackupWhenKeep for
FullSunday 01:004–5 weeks
DifferentialMonday–Saturday 01:002 weeks
Transaction logEvery 30 minutes, 24×72 weeks

With this schedule you lose at most 30 minutes of work, and the worst-case restore is one full, one differential and up to 48 log backups. Small databases can simply take a full backup every night and skip differentials. Whatever you choose, keep at least one copy off the server — see the 3-2-1 backup rule for SQL Server.

How restore chains work

A restore always follows the same order:

  1. The most recent full backup before the point you want, WITH NORECOVERY.
  2. The latest differential taken after that full (if any), WITH NORECOVERY.
  3. Every log backup after that differential, in sequence, WITH NORECOVERY.
  4. Finally WITH RECOVERY to roll back uncommitted transactions and bring the database online.
-- 1. Last full backup, leave the database restoring
RESTORE DATABASE [Sales] FROM DISK = N'D:\SQLBackups\Sales_FULL_2026-09-27.bak'
  WITH NORECOVERY, REPLACE;

-- 2. Latest differential after that full
RESTORE DATABASE [Sales] FROM DISK = N'D:\SQLBackups\Sales_DIFF_2026-09-29.bak'
  WITH NORECOVERY;

-- 3. Every log backup taken after the differential, in order (01:30, 02:00 ... 10:30)
RESTORE LOG [Sales] FROM DISK = N'D:\SQLBackups\Sales_LOG_2026-09-29_0130.trn' WITH NORECOVERY;
-- ... repeat for each log file up to 10:30 ...
RESTORE LOG [Sales] FROM DISK = N'D:\SQLBackups\Sales_LOG_2026-09-29_1030.trn' WITH NORECOVERY;
-- the 11:00 log contains 10:52, so stop inside it
RESTORE LOG [Sales] FROM DISK = N'D:\SQLBackups\Sales_LOG_2026-09-29_1100.trn'
  WITH STOPAT = '2026-09-29T10:52:00', NORECOVERY;

-- 4. Bring the database online
RESTORE DATABASE [Sales] WITH RECOVERY;

STOPAT stops the restore at an exact moment — handy when someone ran a bad UPDATE at 10:53. For the step-by-step on single .bak files, SSMS and common errors, read how to restore a SQL Server database from a .bak file.

What breaks a chain

  • A missing or corrupt log backup — every log after the gap is unusable for that restore.
  • Switching the database to SIMPLE, even briefly. Take a new full backup after switching back.
  • An ad-hoc full backup without COPY_ONLY — it doesn't break the log chain, but later differentials are based on it, so you need that file too.

To see which backups exist and how they link, query the backup history in msdb:

SELECT TOP (20)
       database_name,
       CASE type WHEN 'D' THEN 'FULL' WHEN 'I' THEN 'DIFF' WHEN 'L' THEN 'LOG' END AS backup_type,
       backup_finish_date,
       first_lsn, last_lsn, database_backup_lsn
FROM msdb.dbo.backupset
WHERE database_name = N'Sales'
ORDER BY backup_finish_date DESC;

Automating the schedule

On Standard and Enterprise, SQL Server Agent jobs or maintenance plans (or Ola Hallengren's scripts) run the schedule. SQL Server Express has no Agent, so you need Windows Task Scheduler and sqlcmd — see scheduling SQL Server Express backups — or a tool with its own scheduler.

Backup types — FAQ

What is the difference between a full and a differential backup?

A full backup contains the whole database. A differential backup contains only the data changed since the last full backup, so it is smaller and faster, but it can only be restored on top of that full backup.

Are differential backups cumulative?

Yes. Each differential contains every change since the last full backup, not since the previous differential. To restore you need the full backup plus only the latest differential.

Why is my transaction log file so large?

In the FULL recovery model the log is only truncated after a log backup. If you never take log backups, the log grows until the disk is full. Either schedule regular log backups or switch the database to SIMPLE if you don't need point-in-time recovery.

Does a full backup break the log chain?

No. A full backup doesn't break the transaction log chain, but it does become the new base for differential backups. Use WITH COPY_ONLY for ad-hoc full backups so scheduled differentials stay valid.

Full, differential and log backups on one schedule

SQLBak Plus runs FULL, DIFF and LOG jobs on any edition — including Express — and uploads them to your own storage. Free for one server.

Start free