← cyphonix.comSign in to the console
Cyphonix Backup

Home › Knowledge base › SQL Server log backups break the log chain

SQL Server log backups break the log chain

Article
KB-1057
Category
Databases
Applies to
SQL Server

Symptoms

The console shows a warning "Log chain broken" against a database. Point-in-time restore is offered only up to a certain time, or fails with a message about a missing log sequence number.

Cause

Each transaction log backup contains the log since the previous log backup, whoever took it. If something else takes a log backup, that piece of the chain is in the other tool's backup and not in ours.

Usual culprits:

Finding it

SELECT TOP 50 database_name, backup_start_date, type, user_name, physical_device_name
FROM msdb.dbo.backupset bs
JOIN msdb.dbo.backupmediafamily bmf ON bs.media_set_id = bmf.media_set_id
WHERE type = 'L' AND database_name = 'Sales'
ORDER BY backup_start_date DESC;

Backups taken by the Cyphonix agent have a device name beginning CBK-VDI-. Anything else is another tool.

Resolution

Disable log backups in the other tool. If it must continue to take full backups, set them to copy-only so they do not disturb the differential base either.

The chain repairs itself at the next full or differential backup taken by the agent. To do that immediately:

cbk sqlserver backup --database Sales --type differential

Simple recovery model

Databases in the simple recovery model have no log backups and are restored to the time of a full or differential backup only. The agent does not change a database's recovery model.

Last reviewed: · Report a problem with this page