Dashboard: Backup tab

ProxMenux Monitor · Dashboard~12 min

Backups of the host, backup jobs of the VMs and LXCs, and the Proxmox Backup Servers they write to, each in its own view of the same tab.

The Backup tab has three views, chosen with the switch at the top right: Host, VMs and LXCs and Proxmox Backup Server. The Host view stays loaded while another view is open, so a backup or a restore that is running is still followed.

ViewWhat it managesWhere else it is
HostBackups of the host configuration made by ProxMenux: scheduled jobs, destinations, manual backups, the list of backups and their restore.The Backup and Restore menu of the CLI, with the same engine and the same files.
VMs and LXCsThe Proxmox backup jobs for VMs and containers, and the default retention of each backup storage.Datacenter → Backup in the Proxmox web interface. Both edit the same jobs.
Proxmox Backup ServerThe status of PBS servers: datastores, recent tasks and maintenance schedules.The PBS web interface. This view reads the status of the server; the only thing it creates there is the read-only token of a connection made with a user and password.
Host view of the Backup tab with the Scheduled, Backup configuration, Manual backup and Backups cards, and the view switch at the top right
The Host view, with the switch between the three views at the top right.

Who sees the tab

The tab appears when the profile of the account includes the Backup area. Creating, running, editing, restoring, downloading, viewing the contents of a backup or deleting needs the action Manage backups, and so do managing the PBS connections and editing Storage retention. Without it the views are read-only and those buttons do not appear. Profiles are described in Users and profiles. The Monitor of a Proxmox Backup Server host has its own tabs and no Backup tab.

Host

The Host view works with the host backups of ProxMenux: archives of the host configuration, not of the guests. What goes into them, the destinations and the restore are explained in Backup and Restore. This section describes where each part is in the Monitor. The cards appear in this order:

CardWhat it holds
Post-restore progressShown only while a restore is running or until its summary is dismissed. It follows the restore also after the reboot, with the steps, the components, the log and the rollback delta. Once dismissed, Past restores keeps the latest 20.
ScheduledThe scheduled jobs, and Create job.
Backup configurationDestinations and Custom paths.
Manual backupRun, for a one-shot backup now.
BackupsThe backups found in every destination, to inspect, download, restore or delete.

Scheduled jobs

Create job opens a wizard of five steps. The job model, with its own timer or attached to a Proxmox job, is described in Scheduled jobs.

  1. 1

    Name and backend

    The job name is used in the timer names and the logs, and cannot be changed later. The backend is Local, PBS or Borg, also fixed once the job exists.

  2. 2

    How it runs

    New scheduled job creates a systemd timer of its own. Attach to PVE job runs the backup when a Proxmox vzdump job ends (job-end) and takes the schedule and retention of that job. Borg jobs can only use their own timer.

  3. 3

    Schedule and retention

    Daily, Hourly, Weekly, Monthly or Advanced, which takes a systemd OnCalendar expression and shows a preview. Retention keeps the last, hourly, daily, weekly, monthly and yearly backups: 0 disables a limit, and with no limit set the backups accumulate. An attached job picks its parent Proxmox job here instead.

  4. 4

    Profile

    Default backs up the recommended host configuration and the ProxMenux data. Custom lets you pick which of those paths go in.

  5. 5

    Destination and summary

    The PBS repository, the local folder or the Borg repository. For PBS the step also sets the encryption: none, a new keyfile or an imported one. It ends with a summary of the job.

Each row shows the backend, the attached badge, a lock when the job is encrypted, the profile (Default or Custom), the destination, the schedule, the retention, and the next and last run. A click opens the job with its settings, the log of the last run, and Run now, Edit, Disable and Delete. Deleting removes the job and its timer, never the backups already made. Deleting an attached job leaves the Proxmox job as it is: it goes on backing up its guests, without this host backup.

How retention is applied

Retention runs after each successful backup and is applied by the destination: PBS prunes its group and Borg prunes its repository. On a local destination the job uses the same selection as vzdump, with all six limits, and only over its own archives: other files in a shared folder are never touched. Each archive removed takes its companion file and its run log with it.

Backup configuration

This card holds two lists: where host backups are written, and which extra paths go into every backup.

DestinationWhat to know in the Monitor
Local / USBA folder on this host or on a mounted USB drive. /var/lib/vz/dump is always listed, as Built-in default. The wizard lists the USB drives when it opens and again with Refresh. Each drive offers the action its state allows: Use for a mounted drive, Mount and use for an unmounted drive with a filesystem, which mounts it as it is, and Format and use for a drive with no filesystem, which creates a single ext4 partition after you type the device path to confirm.
PBSA datastore of a Proxmox Backup Server. The PBS storages already configured in Proxmox appear on their own, marked Managed by PVE. Each PBS row has the keyfile controls: generate, import, download or delete it, keep an encrypted recovery copy in PBS, and Recover keyfile when the local key is missing. They are described in PBS destination.
BorgA Borg repository on this host, on a USB drive or on another host over SSH. For SSH, Prepare key creates a key on this host and shows the public key line, which you add to ~/.ssh/authorized_keys on the remote host: the Monitor does not install it there.

Configure destination opens the wizard that adds one. While jobs use a destination its name and credentials cannot be changed, and removing it also deletes those jobs (Remove destination and delete jobs). The backups already written stay where they are.

Custom paths are absolute paths added to every backup, manual or scheduled, with either profile: application data, configuration folders and the like. A path that no longer exists on the host is marked missing on disk.

Manual backup

Run opens a short dialog: the destination, the profile and, for PBS, the encryption. The backup starts at once and its log opens live. If the dialog is closed before it ends, a Manual backup in progress line in the card opens the log again. Each one-shot backup is kept as a finished job, so its log can be read later.

Backups

The list joins the backups of every destination: local folders, read through the companion file next to each archive, and PBS and Borg repositories, which can take a moment to answer. Each row shows the backend, a lock when the backup is encrypted, the date, the size and where it is. Local backups also show their job, or manual, and Former job when the job that made them no longer exists.

When a destination holds backups of other nodes, a This node / All nodes switch appears. The list starts with the backups of this node only.

A click opens the backup: its manifest (source host, Proxmox version, kernel, the VMs and LXCs at the time, the paths archived) and, for a local backup, its log. The buttons are:

ButtonWhat it does
View contentsExtracts the backup to a temporary folder and shows its files, the restore plan, the storage, the network and the drivers to reinstall, without changing the host.
DownloadDownloads the archive. A PBS or Borg backup is exported to a file first (Preparing download...).
RestorePrepares the restore and opens its options, described below.
DeleteDeletes the local archive, the PBS snapshot or the Borg archive from its destination.

Encrypted backups need their keyfile

An encrypted PBS backup cannot be viewed, downloaded or restored without its keyfile. The buttons ask for it first (Keyfile required): import it, or recover it from the encrypted copy kept in PBS with the recovery passphrase. See PBS destination.

Restore

Restore offers two modes:

ModeWhat it restores
CompleteEverything in the backup, as the complete restore of the CLI menu does. Before it starts, the dialog lists what exists on the host but not in the backup (VMs, LXCs and components created later), which the restore permanently deletes, and asks you to tick an acknowledgement.
Custom by pathsOnly the paths you pick from those in the backup. Paths that need a reboot, such as the kernel, modules or fstab, are detected by the restore, which offers to apply them at the next boot.
Custom by paths restore dialog with the list of paths in the backup, a filter and the count of selected paths
Custom by paths: the paths of the backup, to restore only some of them.

When the backup comes from an older kernel than the one the host runs, both modes restore only the safe subset: the paths tied to the kernel and the boot are grayed out and skipped (Cross-kernel restore). In both modes the settings written by the operator are merged into the host.

The restore runs in a terminal inside the Monitor, which still asks how to apply it before touching the host: safe changes only, safe changes and a reboot, or everything at once. After the reboot, the Post-restore progress card at the top of the view shows how it goes. The whole flow is in Restoring.

VMs and LXCs

This view shows the Proxmox backup jobs for VMs and containers: the jobs of /cluster/backup, the same ones as Datacenter → Backup. A job created or changed here appears there, and the other way round.

Each job shows its schedule, storage, mode and compression, retention and guests. A click opens it with Run now, Edit, Disable or Enable, and Delete. Run now starts the backup as a Proxmox task with the settings of the job; in mode stop, its guests are shut down during the backup. Disable stops the scheduled runs but keeps the job, which can still be run by hand. Delete removes only the schedule: the backups already made stay in the storage.

New job opens the form:

FieldWhat it sets
Name (optional)Letters, numbers and hyphens. If it is empty, Proxmox generates one.
Guests to back upAll VMs and containers, or a selection.
Destination storageOne of the Proxmox storages that accept backups.
ScheduleA preset (every day at 02:00 or 03:00, every Sunday at 02:00, every 6 hours, every hour) or a custom Proxmox calendar event, such as mon..fri 01:30.
ModeSnapshot, without downtime; Suspend, which pauses the guest; or Stop, which shuts it down.
Compressionzstd, gzip, lzo or none.
RetentionHow many last, hourly, daily, weekly, monthly and yearly backups to keep. 0 disables a limit. With every field empty, the job uses the retention of its storage.
Backup notesThe notes template written with each backup.

Host backups that run with a job

When a host backup job is attached to a Proxmox job, that Proxmox job lists it under Host backups that run with this job. Deleting the Proxmox job, or giving it another storage, warns that it will no longer start those host backups. Another job that writes to the same storage still starts them.

Below the jobs, Storage retention lists the backup storages with their default retention, which is stored in Proxmox. A job with its own policy overrides it. Edit offers the Proxmox default (no policy on the storage), Keep all backups, or retention counts. Saving does not delete any backup: the policy applies to the next runs that inherit it, and protected backups stay protected.

VMs and LXCs view with the list of Proxmox backup jobs, one job open with its schedule, storage, mode and retention, and the Storage retention card below
The VMs and LXCs view: the jobs of Datacenter → Backup and the retention of each storage.

The backups of a single guest, with Create Backup, are in the Backups tab of its modal in VMs & LXCs.

Proxmox Backup Server

This view reads the status of Proxmox Backup Servers through their API. On a server it only creates the read-only token of a connection made with a user and password. It is not the same as using PBS as a destination of host backups, which is set up in PBS destination.

The selector at the top lists the saved connections, and PBS on this node when PBS is installed on the same host as Proxmox VE, which needs no connection. The data refreshes every 30 seconds and with Refresh.

PartWhat it shows
Summary lineServer name, PBS version, time of the last update and, for PBS on this node, whether the PBS services are active.
DatastoresCapacity, used and available space of each datastore, with Estimated full.
Recent tasksBackups, restores, verifications, prunes, garbage collections and syncs, with start time, duration and result.
Maintenance schedulesThe sync, verification and prune jobs, with their datastore, schedule and last result.
Proxmox Backup Server view with a server selected: datastores with their usage, recent tasks and maintenance schedules
The Proxmox Backup Server view, reading a remote PBS with a read-only token.

Manage PBS connections adds, edits and removes servers, up to 32. A new connection signs in one of two ways:

Sign in withHow it works
User and passwordThe user, as user@realm, signs in once. The Monitor creates an API token named proxmenux- plus random characters, gives it the Audit role on / with propagation and saves only the token: the password is not stored. The user must be allowed to create tokens and grant that role, as root@pam is.
API tokenA token created in PBS, as user@realm!token with its secret. It needs the Audit role on / with propagation, in the ACLs of both the user and the token.

The address is HTTPS, with :8007 for the default port. The SHA256 fingerprint is optional: leave it empty for a certificate signed by a trusted authority, and fill it in for a self-signed one. It is checked before any credential is sent. Saving a connection, signing in and removing it need the local account of the Monitor, with its password; with Proxmox VE sign-in they are refused. Remove connection deletes the connection and its token from the Monitor only: the token stays in PBS, where it can be deleted.

When Proxmox VE has PBS storages without a connection, the card PBS detected in Proxmox storage lists them with Connect, which opens the form with the name, address and fingerprint already filled in.

How the data is collected

Section of the tabEndpointSource
ScheduledGET /api/host-backups/jobsThe job files in /var/lib/proxmenux/backup-jobs/ and their systemd timers.
DestinationsGET /api/host-backups/destinationsThe destinations saved by ProxMenux, the default local folder and the PBS storages of /etc/pve/storage.cfg.
BackupsGET /api/host-backups/archives, GET /api/host-backups/remote-archivesThe companion files *.proxmenux.json in local destinations, and the listings of the PBS and Borg repositories.
RestorePOST /api/host-backups/archives/<id>/prepare-restore, GET /api/host-backups/restore/statusThe backup extracted to a staging folder and, after the reboot, /var/lib/proxmenux/restore-state.json.
VMs and LXCsGET /api/vm-backup-jobspvesh get /cluster/backup.
Storage retentionGET /api/vm-backup-storagesThe prune-backups option of each storage with backup content, from pvesh get /storage.
Proxmox Backup ServerGET /api/pbs/servers, GET /api/pbs/statusThe PBS API with the saved token, over verified HTTPS. On this node, proxmox-backup-manager and proxmox-backup-debug api. Connections are saved in /root/.config/proxmenux-monitor/pbs_servers.json.

Where to next

  • Backup and Restore — how host backups work, from the CLI and from the Monitor.
  • Scheduled jobs — jobs with their own timer or attached to a Proxmox job, and their files.
  • Restoring — the restore flow and its progress after the reboot.
  • PBS destination — PBS as a destination, the keyfile and its recovery copy.
  • Notifications — the events of Proxmox backups and host backups.
  • Users and profiles — the Backup area and the Manage backups action.