← cyphonix.comSign in to the console
Cyphonix Backup

Home › Documentation › Agents › SQL Server

Microsoft SQL Server

Applies to SQL Server 2016, 2017, 2019 and 2022, all editions including Express. Requires the Server plan and the agent installed on the database server.

How it works

The agent uses SQL Server's Virtual Device Interface, the same mechanism as native BACKUP DATABASE. SQL Server writes the backup stream directly to the agent, which chunks, encrypts and uploads it. No local disk space is needed for a staging copy.

Enable

cbk config set sqlserver.enabled true
cbk sqlserver list
cbk sqlserver select --instance MSSQLSERVER --all

The agent connects using Windows authentication as Local System. Grant NT AUTHORITY\SYSTEM the sysadmin role on the instance, or specify a dedicated account:

cbk sqlserver credentials --instance MSSQLSERVER --user DOMAIN\svc-cbk

Schedule

Backup typeDefault scheduleNotes
FullWeekly, Sunday 01:30
DifferentialDaily 01:30
Transaction logEvery 30 minutesDatabases in full or bulk-logged recovery only

Exclude the data files from file backup

If the same server also has a file-level source that includes the SQL data directory, exclude *.mdf, *.ndf and *.ldf. File-level copies of live database files are not usable for restore and waste storage. The server default policy does this when it detects SQL Server.

Log chain

Only one product should take log backups of a database. If another tool or a maintenance plan also takes log backups, the chain is broken and point-in-time restore will fail. See KB-1057.

Availability groups

Install the agent on every replica. Set sqlserver.ag_preference to primary, secondary or any. Full backups taken on a secondary are copy-only.

Restoring

See Database restore. Databases can be restored to a point in time, to a different name, or to a different instance of the same or a later version.

System databases

master, model and msdb are included by default with a daily full backup. tempdb is never backed up.

Last reviewed: · Report a problem with this page