Scheduling VM Backups with Proxmox 🌱

For reference, I currently run a weekly stop backup on Sundays at 3 AM with a retention of 1. These backups are then copied to network attached storage. I only backup the OS, TPM and EFI disks and have disabled backing up of physical disks that I passed to the VMs. The data on these physical disks is backed up via other means and removing them from the backup reduces the amount of downtime required.

  1. Log into the Proxmox web UI
  2. Select Datacenter from the left navigation menu
  3. Select Backup from the left sub-navigation menu
  4. Click the Add button
  5. Complete the form to configure the backup schedule
    NOTES: The Schedule field can be input manually, for example fri 03:00
    A quick overview of the different backup modes from the Proxmox documentation

    stop mode
    This mode provides the highest consistency of the backup, at the cost of a short downtime in the VM operation. It works by executing an orderly shutdown of the VM, and then runs a background Qemu process to backup the VM data. After the backup is started, the VM goes to full operation mode if it was previously running. Consistency is guaranteed by using the live backup feature.

    suspend mode
    This mode is provided for compatibility reason, and suspends the VM before calling the snapshot mode. Since suspending the VM results in a longer downtime and does not necessarily improve the data consistency, the use of the snapshot mode is recommended instead.

    snapshot mode
    This mode provides the lowest operation downtime, at the cost of a small inconsistency risk. It works by performing a Proxmox VE live backup, in which data blocks are copied while the VM is running. If the guest agent is enabled (agent: 1) and running, it calls guest-fsfreeze-freeze and guest-fsfreeze-thaw to improve consistency.

  6. After completing the form, click Retention option at the top of the form
  7. Setup how backup retention should be configured
  8. Click Create

Removing Disks From the Backup (As needed)

To remove disks from the scheduled backup, for instance, to not include physical hard disks that have been passed through to a VM, do the following

  1. Expand the Node in the left navigation menu > Select the VM
  2. Select Hardware from the left sub-navigation menu
  3. Double click the hard disk to remove from the backup > Uncheck the Backup option > Click OK
  4. Go back to Datacenter > Backup
  5. Click the previously set up backup job to select it > Click Job Detail above the backup job listing
  6. The Job Detail listing should now show that the requested disk(s) will no longer be included in the backup

Documentation: https://pve.proxmox.com/wiki/Backup_and_Restore