Application-aware and SQL Server backups
How Windows volume images are made application-consistent for SQL Server, SQL Server log truncation and log backups, the log warning, restoring a database into its instance or as files, and running scripts before and after a backup.
A plain snapshot of a running database server is crash-consistent: the database comes back as if the power had gone. It will usually start, but it has to recover first. Tenvara takes every Windows volume image as an application-aware backup instead, so SQL Server knows a backup is happening, makes its databases consistent on disk, and records the backup in its own history.
What happens during an image backup
For every Windows volume image, the backup helper:
- Asks Windows which applications have data on the volume. If a SQL Server database has its log on another volume, that volume is included in the same snapshot.
- Tells SQL Server a full backup is starting, so it brings each database to a consistent state for the snapshot.
- Reads the image from the snapshot as usual.
- Once the image is safely in your backup storage, tells SQL Server the backup succeeded. SQL Server records a full backup of each database, so the customer's own differential backups are based on it.
The job log says what happened, for example "C:: application-aware snapshot with SqlServerWriter (3)" and "C:: SQL Server SQLEXPRESS (3 databases) application-consistent". If Windows cannot take an application-aware snapshot, the log says so and a plain snapshot is taken instead, so the backup still runs.
The device's Backup section shows it on the volume: "SQL Server SOE (3 databases) application-consistent", with the databases on hover. The job panel shows the same for each unit.

SQL Server logs
A database in the full (or bulk-logged) recovery model keeps every change in its log until the log is backed up. A volume snapshot alone never truncates it, so on a server nobody looks after, the log grows until the disk is full.
By default Tenvara keeps the logs and takes its own log backups of them (below), which keeps the log small and lets a database go back to any point in time.
You can choose to truncate instead: after a good application-consistent image, Tenvara backs up the log of each such database to nowhere, which lets SQL Server reuse the space. This runs as the helper's account (SYSTEM), which needs a SQL Server login with the right to back up. It is off unless you choose it, because it breaks any other tool's chain of log backups and leaves no point-in-time restore.
- For everyone: Truncate SQL Server logs after an application-consistent image under SQL Server on the Defaults tab of Settings > Backup.
- On one device, open Settings in its Backup section and choose under Applications > SQL Server logs: As Settings, Truncate them, or Keep them.
A log that another tool backs up is never truncated and never taken by Tenvara's log backups: when SQL Server's own history shows another tool's log backup of a database in the last two weeks, that database is left alone, the job log says "the log of Sales was not truncated: ..., so its chain stays intact", and the device says so. Only one tool should take log backups.
Log backups
Truncating keeps the log small, but it means a database can only go back to the moment of an image. With log backups, on by default, the backup helper backs up the log of every database in the full or bulk-logged recovery model every 15 minutes (5 to 60), keeping each log backup with the device's images. A database can then be restored to any point between its oldest image and its latest log backup.
- For everyone: Take SQL Server log backups under SQL Server on the Defaults tab of Settings > Backup, with Log backup every (5 to 60 minutes).
- For one device: Settings in its Backup section, Applications > SQL Server log backups: As Settings, On or Off, and Every for its own interval.
While log backups are on, images leave the logs alone, and the log warning below gives way to "Log backups up to" a time for each database. Use one tool for log backups: a maintenance plan or another product that also backs up the same logs breaks the chain. How log backups, the restorable window and point-in-time restore work is in Restoring SQL Server databases and point-in-time restore.
The log warning
Each image also reads when each database's log was last backed up. If a database is in the full recovery model and its log has had no backup for longer than Warn about a log nothing truncates after (7 days by default), the device's Backup section shows "A SQL Server log is growing", with the database, the instance and what to do. It is a warning on the device, not an alert: it is a slow problem you fix once.
When SQL Server's writer fails
Sometimes SQL Server's VSS writer fails at the moment of the snapshot (a busy server, a pending restart, another backup tool holding the writer). The image is still taken. Where the writer has failed, SQL Server is asked to make a copy-only backup of each database while the image is read, which leaves the customer's own differential base and log chain alone; the volume then reads "application-consistent through a COPY_ONLY backup".
When an image is not application-consistent, the device says how long it has been since the last consistent one:
| Since the last consistent image | What you see |
|---|---|
| Under 3 days, with a consistent recovery point behind it | The run is completed with errors, nothing more |
| 3 days | Not application-consistent, a warning, and an alert |
| 14 days | The alert is raised to critical |
| No recovery point holds a consistent backup | A warning at once |
The alert and the notice on the device's page name the application, the instance, the VSS writer, the volume and the last error the device reported, with what to try next (list the writers, restart the service, read the event log). For example "SQL-01: no consistent backup of SQL Server for 18 days". It clears once an image is consistent again, and it is raised whatever the backup alert switches say.
Restoring a SQL Server database
A database in an application-consistent image can go straight back into its SQL Server instance, or come back as files to attach yourself.
- In the device's Backup section, under Recovery points, hover a recovery point of the volume and press Restore a SQL Server database. You need the Restore backups switch in your role.
- Choose the Database. Each shows its instance, recovery model, size and number of files.
- Choose how:
- Into the instance: the backup helper restores it into SQL Server for you, As a new database beside the live one or Over the original. See Restoring SQL Server databases and point-in-time restore for both, and for restoring to a point in time from the device's SQL Server databases card.
- Files to a folder: enter Restore to this folder on the device, for example
C:\Restore\Practice-2026-09-29(an ordinary local folder, not a network share or one of Windows' own folders), and press Restore the files. The live database is not touched.

The restore goes through the usual approval rules and malware scan. When files are restored to a folder, Attach the restored database gives the statement to run on the instance, ready to copy, for example:
CREATE DATABASE [Practice_restored] ON
(FILENAME = N'C:\Restore\Practice-2026-09-29\SQL\Practice.mdf'),
(FILENAME = N'C:\Restore\Practice-2026-09-29\SQL\Practice_log.ldf')
FOR ATTACH;
The job log has the same statement. If some of the database's files are on another volume, the dialog says which and offers only Files to a folder: restore them from that volume's backup into the same folder first.
Scripts before and after a backup
For applications that need more than a snapshot (stop a line-of-business service, dump a MySQL or Sage database into a folder that is backed up), run a script from your script library around the backup.
Databases on Linux
On Ubuntu, a disk image is taken from a point-in-time snapshot where one can be made, or read twice with the file systems frozen for a moment at the end, so it is crash-consistent: a database in it recovers as after a power cut. For a copy a database restores from directly, the script library has starter scripts in the Backup category: Dump PostgreSQL before a backup, Dump MySQL or MariaDB before a backup and Remove the database dumps after a backup. When the device's inventory shows a PostgreSQL, MySQL or MariaDB service, its backup settings offer the dump script ("This device runs PostgreSQL. ..."). The dump is finished before the image starts reading, and a dump that fails never replaces the last good one. See Disk backups and partitions.
- Open Settings in the device's Backup section, or Change under Schedule and retention on the customer's Backup tab for all its devices.
- Under Scripts, turn on Set here.
- Under Before the backup, choose a published Script, its parameters and a Time limit, and If it fails: Skip the backup or Carry on.
- Under After the backup, choose a script to run once the backup has finished, whatever its result, for example to start the service again.
- Save.

The scripts run through the Scripts module as the person who set them, and their rights to run scripts are checked each time. Scripts that need a second person's approval cannot be used, because nobody is there to approve them at night. The job shows "Running the script before it" while it waits, and the job panel and log show each script's output and exit code. If the script before fails with Skip the backup, the job fails with the reason and the script after still runs.
Related
Was this page helpful?
Thanks for the feedback.