6.7 Other job types
Besides backup jobs, the job editor offers four more kinds: Copy, Restore test, Maintenance and Check. They work on repositories (chapter 08 Repositories and Storage). Choose the kind in the Job section of the editor (section 6.2 Job editor: general settings); the schedule works as for backup jobs (chapter 07 Schedules and Plans).
Copy
A copy job transfers snapshots from one repository to another. It implements the 3-2-1 rule: a second copy at another location or on another medium. Typical schedule: after job, that is, right after the backup.
Option | Effect | Default |
|---|---|---|
From repository | Source of the snapshots. | empty |
To repository | Target. A repository that serves as a copy target cannot be removed. | empty |
Which snapshots | Filters for the selection; all entries must match. | all |
Only these backup jobs | Restricts to snapshots of specific backup jobs. | all |
Only these agents | Restricts to specific agents. | all |
Tags | Comma-separated tags that must all be present, for example | empty |
Only younger than (days) | Copies only snapshots up to this age. | no limit |
Also copy server configuration backups | Includes the backups of the server configuration. | off |
The copy job's retention applies in the target, separately per source job.
Restore test
The test automatically restores data of a backup job into a sandbox and checks it. This shows early whether a backup can really be restored.
Option | Effect | Default |
|---|---|---|
Backup job to test | The job whose latest snapshot is tested. | empty |
Restore on | The machine the test runs on. | Server (files only) |
Sample files | Number of files that are checked, 0 to 1000. | 10 |
Skip files larger than (MB) | Larger files are not part of the sample. | 256 |
Sandbox folder | Folder for the restored test data. | empty |
Scan the restored files for malware | Scans the restored sample with the antivirus scanner of the machine that runs the test (Defender or ClamAV, plus YARA rules from | off |
Depending on the workload, more options appear:
Databases: restore the databases into a temporary database and check their integrity. The test uses
DBCC CHECKDB(SQL Server),pg_amcheck(PostgreSQL) ormariadb-checkand creates a temporary databasepdc_verify_<run>_<n>.VMs (boot test): The restored VM is started in an isolated network. Proxmox: Bridge (isolated, without uplink, for example
vmbr99), First VM ID (9900) and Storage. Hyper-V: Private switch and Target folder. Success when decides whether the guest agent must respond or the VM only has to run. Timeout (s) limits the wait to 30 to 3600 seconds (default 300).Other workloads are tested as files.
Maintenance
The maintenance job looks after a repository. It applies the retention of all backup jobs in the repository, removes stale temporary files and refreshes the statistics.
Option | Effect | Default |
|---|---|---|
Prune unused data (safe while backups run) | Additionally prunes the repository, which frees space that is no longer referenced. | on |
Retention rules are also applied after every backup run; the space is only freed by the prune of the maintenance job.
Check
The check job verifies the consistency of a repository.
Option | Effect | Default |
|---|---|---|
Read and verify data (%) | Share of the data that is read and verified. 0 checks the structure only, 100 all data. The check job needs no agent. | 0 (structure only) |
Scan as a run kind
In addition to the job kinds there is the run kind Scan backup. It restores a backup into a staging folder and scans it for malware. It cannot be created as a job in the editor; the scan is created by the restore (secure restore, chapter 09 Restore) and by the option Scan the restored files for malware of the restore test.