On this page

9.4 Secure restore

With secure restore, the agent scans the data for malware before it reaches the target. This is useful after a suspected ransomware incident, when you cannot be sure the backup itself was not already infected. Scan backup is the companion function: it scans a backup without writing anything to the original location.

How it works

In the target area of the restore (file restores only), tick Scan for malware before putting the data in place. The restore then runs in these steps:

  1. The agent first restores the data into a hidden folder next to the target (same volume).

  2. It scans this copy with Microsoft Defender (MpCmdRun.exe, Windows) or ClamAV (clamscan).

  3. Only if the scan allows it, the agent moves the data to the target. The conflict rule applies at this moment (see section 9.1 Restoring files and folders).

Free space for the restored data is therefore needed at the target. The agent finds the scanner itself or reads scanner.json in the agent folder. If the interface shows "This agent has not reported support yet: update the agent", the agent is too old and must be updated. Database, VM and image restores are not scanned.

Options

Option

Effect

Default

Scan for malware before putting the data in place

Turns the scan on. Without the check mark the data is restored directly to the target.

off

If found: remove the restored copy and fail (abort)

The copy is removed, the target stays untouched, the run fails. The affected files are named in the error and in the summary.

selected

If found: restore anyway and warn (warn)

The data is put in place and the run ends with a warning.

–

No scanner: stop (fail)

If the agent has no scanner, nothing is restored.

selected

No scanner: restore unscanned (skip)

Restores without scanning; the run ends with a warning.

–

A detection raises the notification event restore_threat_found. If the agent has no scanner, the interface shows "No scanner detected on the agent (Microsoft Defender on Windows, ClamAV elsewhere)."

Scan backup (without restoring)

Scan backup… (snapshot menu) restores the selected data into a temporary folder on an agent, scans it with that agent's antivirus scanner (and YARA rules, if yara_rules is set in scanner.json) and removes the copy again. Nothing is written to the original location.

Option

Effect

Default

Folder of the backup

Folder of the snapshot that is scanned.

whole snapshot

Scan on agent

Machine that restores and scans. An agent other than the backed-up machine needs access to the repository like a restore does. Without support the entry reads "(cannot scan, update the agent)"; an offline agent scans when it connects.

backed-up machine

Largest selection (MiB)

Fails the run before anything is restored if the selection is larger.

no limit

The result reads "No malware found in {n} files" or lists the affected files with File and Threat (YARA hits as YARA.<rule>). Detections or an incomplete scan end the run with a warning; a missing scanner fails it. A detection raises the event backup_threat_found. Scanning is not possible for VM and image snapshots or configuration backups.

Restore tests can also scan their restored sample: Scan the restored files for malware with fail the test (default) or only warn. The restore tests themselves are described in chapter 08 Repositories and Storage, section 8.8 Maintenance, checks and restore tests.

Last updated Nov 16, 2026