6.2 Job editor: general settings
The job editor is the dialog in which every job is created and edited. This page describes the fields that apply to all job kinds: name, kind, agent, repository, schedule, retention, backup type and scripts. The fields of the individual workloads follow in sections 6.3 to 6.7.
Opening the editor
Action | Result |
|---|---|
Advanced job… in the job list | Empty editor, titled New job. If an agent or repository filter is set in the list, both are preselected. |
Edit (key E) in the list, details or context menu | Editor with the saved job, titled Edit job · name. Kind and workload are locked. |
Duplicate… | Editor with a copy, named "name (copy)". Passwords and API tokens are not copied. |
All options… in the wizard | Editor with the choices made in the wizard (section 6.8 The "New backup job" wizard). |
Applications, VMs … in the wizard | Empty editor for the chosen agent. |
The editor has two columns. The left one holds kind, agent, repository and the content of the job, the right one schedule, retention, backup type and scripts. Without the Operator role a user cannot create or change jobs (see chapter 11 Users and Security).
Job section
Field | Effect | Default |
|---|---|---|
Name | Display name of the job. Required, at most 120 characters. | Empty. For maintenance, check, copy and restore test the editor suggests a name ("Maintenance repo", "Check repo", "Copy A → B", "Restore test job name"), for applications and VMs "workload agent". A suggested name follows later choices; a name you typed does not. |
Type | Job kind: Backup, Copy, Restore test, Maintenance, Check. The choice changes the remaining fields. Locked for an existing job. | Backup |
Agent | Backup jobs only: the machine that runs the backup. The list shows active agents; offline agents carry "(offline)". | Preselected if there is only one agent. |
Repository | Target of the backups. The list shows name, storage kind and free space in percent. For copies the field is called From repository; for restore tests it is replaced (the repository follows from the tested job). | Preselected if there is only one repository. |
To repository | Copies only: target of the copy. Must differ from the source. If the target has Object Lock, "lock N d" is shown. | Empty |
What to back up | Backup jobs only: the workload. Choices: Files, Disk image, SQL Server, PostgreSQL, MariaDB / MySQL, Docker, Hyper-V, Proxmox VE. Locked for an existing job. | Files |
Workload detection
The agent reports in its status which applications and hypervisors it finds on the machine. The editor then shows Files, Disk image and the detected workloads as buttons; detected workloads carry a dot, and the hint names them ("detected on machine name: …"). All other workloads are in the Other (not detected)… list. If the agent has not sent a status report yet, the editor offers every workload.
When Disk image is chosen for a new job while the schedule is still at the default (daily 02:00), the editor switches it to weekly on Saturday, because images are large.
Schedule section
The section defines when the job starts. Schedule kinds, schedule rules, blackout windows and catching up are described in detail in chapter 07 Schedules and Plans; this page covers the fields of the editor.
Protection plan
For backup jobs the Protection plan selector appears as soon as at least one plan exists. Entries show the plan name and its RPO ("Gold · RPO 4 h"); plans that fit the chosen workload carry "(suggested)".
Choice | Effect |
|---|---|
None: own schedule and retention (default) | Schedule and retention are set in this editor. |
A plan | Schedule and retention come from the plan. Their fields disappear from the editor; a line "Runs …, keeps …. RTO target …" with a link to the Plans page is shown instead. When the plan changes, the job changes with it. |
Fields for an own schedule
Field | Effect | Default |
|---|---|---|
Runs | Kind of schedule: Manually only (never automatic), Daily, Weekly, Monthly, Cron expression, Rules (several times and types), After another job. | Daily |
At (server time) | Time of day for daily, weekly and monthly. | 02:00 |
Days | Weekly: the weekdays, at least one. | Monday to Friday |
Day of month | Monthly: 1 to 31; 31 means the last day of shorter months. | 1 |
Expression | Cron: 5 or 6 fields (minute hour day month weekday) in local server time. |
|
Rule list | With Rules: several appointments, each with days, times and its own backup type (chapter 07 Schedules and Plans). | One rule: Incremental, Monday to Friday, 22:00 |
After job | With After another job: the predecessor job. | Empty |
Start when it ends with | For "after job": Success or warning or Any result. | Success or warning |
Only start between … and … | Time window for scheduled runs: they start only inside the window. A run waiting for an agent starts as soon as the agent connects inside the window. Manual starts ignore the window. Not available for "Manually only". | Off; window 22:00 to 06:00 |
Catch up missed runs after server downtime | An occurrence missed while the server was down runs once on the next start. Not available for "Manually only". | On |
Times use the server's time zone. An agent that is switched off at the scheduled time gets the run as soon as it connects; until then the run shows "waiting for agent" (see section 6.9 Running a job now and following runs).
When the kind is changed while the schedule is still at the default "daily 02:00", the editor picks a fitting schedule: maintenance and restore tests run on Sundays at 04:00, checks on Sundays at 05:00, disk images on Saturdays at 02:00. Copies keep the default.
Retention section
The section appears for backup jobs without a protection plan and for copies (there as Retention in the target). It defines which snapshots of the job are kept. The rules are combined with OR: a snapshot is kept as soon as one rule keeps it. Empty fields (placeholder "-") or 0 switch the rule off; if all are empty, everything is kept. The server applies retention after every backup run of the job (after every copy run for copies) and again on every maintenance run of the repository. The space used shrinks only when a maintenance job prunes data that is no longer needed (section 6.7 Other job types). Background is in chapter 08 Repositories and Storage.
Field | Effect |
|---|---|
Last | The n newest snapshots. |
Within days | All snapshots of the last n days. |
Daily | One snapshot per day for the last n days. |
Weekly | One snapshot per week for the last n weeks. |
Monthly | One snapshot per month for the last n months. |
Yearly | One snapshot per year for the last n years. |
Five buttons fill the fields with presets:
Button | Values |
|---|---|
Keep all | all fields empty |
Last 10 | Last 10 |
30 days | Within days 30 |
GFS 7/4/12 | Last 3, Daily 7, Weekly 4, Monthly 12 |
GFS 14/8/24/5 | Last 3, Daily 14, Weekly 8, Monthly 24, Yearly 5 |
A new backup job starts with the values of GFS 7/4/12, a new copy with Daily 7, Weekly 4, Monthly 12 (no "Last"). If an administrator has set defaults for new jobs under Automation, those apply instead (chapter 12 Automation and Deployment). A hint below the fields summarizes what the setting keeps and how far back it reaches ("Keeps: …").
If the job writes into a repository with Object Lock, a hint shows mode and lock duration. Retention must outlast the lock, otherwise the server rejects the job; "Last" alone is not enough (see chapter 08 Repositories and Storage).
Backup type section
The section applies to Files, Disk image and Hyper-V. All other workloads read their source completely on every run or have types of their own (SQL Server). Every restore point is complete on its own; the type only changes how much is read.
Field | Effect | Default |
|---|---|---|
Incremental | Reads only what changed since the job's last backup. Fastest. | selected |
Differential | Reads everything that changed since the last full backup (active or synthetic). | – |
Full every run | Reads the whole source again every time. | – |
Periodic full backup | No extra full, Plus an active full (reads everything on the chosen days) or Plus a synthetic full (after the backup the server builds a complete point from the newest snapshot without reading the machine). | No extra full |
on + weekdays | Weekdays of the extra full. | Sunday |
monthly, day | Alternatively one day of the month (1 to 31; 31 is the last day of shorter months). | 1 |
The extra full runs at most once per day. With a Rules schedule the field is hidden because every rule has its own type; the type chosen here then applies to Run now only. Normal runs cannot be "synthetic full" because a backup must already exist to build on. Any type can be started once with Run as… (section 6.1 Jobs overview). A table of the types is in chapter 07 Schedules and Plans.
Pre/post scripts
For backup jobs (all workloads) scripts can run on the agent before and after the backup, for example to stop a service. The Pre/post scripts area is collapsed as long as no script is set, and its heading shows what is set ("pre + post" or "none"). Scripts run with the privileges of the agent (as local system on Windows, as root on Linux). Therefore only admins can create, change or remove them; for other users the area is read-only, and saving leaves the scripts unchanged.
Field | Effect | Default |
|---|---|---|
Pre script | Runs before the backup. If it fails and the failure behavior is Fail run, the backup is skipped and the run fails. | Off |
Post script | Runs after every backup attempt, also after a failure. The outcome is in | Off |
Shell | Auto (PowerShell on Windows, | Auto |
Timeout (s) | After this time the script and its child processes are killed. 1 to 86400 seconds. | 300 |
Failure behavior | Fail run: an error ends the run as failed (for the post script the snapshot is kept). Warn: the run ends with a warning. | Fail run |
Script text | At most 64 KiB; must not be empty while the script is enabled. | empty |
The output of the script goes into the run log. These environment variables are available: PDC_PHASE (pre or post), PDC_JOB_ID, PDC_JOB_NAME, PDC_RUN_ID, PDC_WORKLOAD, PDC_AGENT_ID, PDC_HOSTNAME, PDC_REPOSITORY_ID. Post scripts also get PDC_STATUS (success, warning, failed or cancelled), PDC_SNAPSHOT_ID and PDC_ERROR.
Example of a pre/post pair on Linux:
# Pre script
systemctl stop myapp
# Post script
systemctl start myapp
Enabled and saving
Element | Effect |
|---|---|
Enabled (scheduled runs) | Switches the job's schedule on or off. A disabled job does not start by itself but can still be run manually. Default: on. |
Cancel | Discards the changes. |
Save and run now | Saves the job and starts a run immediately; the log opens. |
Create job / Save | Saves the job. |
On saving, the editor checks the input. Typical messages: "Add at least one path to back up.", "Source and target must be different repositories.", "Pick the backup job to test.", "Pick at least one weekday." and "An enabled script is empty: enter it or switch it off." Checks made by the server (for example on Object Lock retention or on unknown workload options) appear as a red message in the dialog.
Not in the editor: bandwidth and priority
Two options of a job cannot be set in the editor. Saving keeps them unchanged, and they can be set through the REST API in the options field: bandwidth (upload limit in KiB/s with time windows by time of day and weekday; the tighter limit of agent and job applies) and low_priority (low CPU and I/O priority on the agent). The same options exist per agent in the agent settings (chapter 05 Agents). For file jobs, Read limit (KiB/s) additionally throttles reading the source (section 6.3 File and folder jobs).