The integrated backup feature in Proxmox VE allows you to perform a backup of selected or all VMs at once. Unlike snapshots, backups are independent copies of original data that can be stored either locally or remotely so that you can recover from almost any kind of failure.

The purpose of a backup is to recover from unexpected problems that are not covered by snapshots, such as physical storage failure or entire server failure. For a comparison of the different usage scenarios of backups and snapshots, please refer to my previous article.

Proxmox on-demand backups

To manually back up a VM on demand in Proxmox VE, follow these steps:

  1. Log in to the Proxmox web-based management interface.
  2. Select the specific VM, click the Backup option, and then click the Backup Now button.

    Manually back up a VM in the Proxmox web GUI

    Manually back up a VM in the Proxmox web GUI

  3. Make sure you select a remote storage in the Storage field and leave the backup mode as Snapshot, since it provides the lowest possible downtime for your VM. You can also enable the Protected checkbox to prevent backups from being removed. Once done, click the Backup button.
    Backup options for a VM in Proxmox

    Backup options for a VM in Proxmox

    Give it some time to finish the backup. You can view the backup status in the task viewer, as shown in the screenshot below:

    Viewing the progress of the VM backup in Proxmox

    Viewing the progress of the VM backup in Proxmox

  4. Now click the dropdown list to select the remote storage, as shown in the screenshot:

    Viewing the VM backup under the remote storage

    Viewing the VM backup under the remote storage

Restore a Proxmox backup

To restore a VM from backup, follow the procedure below:

  1. Select a particular backup, and click the Restore button.

    Restoring a VM from backup in Proxmox

    Restoring a VM from backup in Proxmox

  2. The Overwrite Restore dialog box is displayed:

    Restoring a VM with overwrite in Proxmox

    Restoring a VM with overwrite in Proxmox

  3. During the restore, you can override the VM settings, such as VM name, memory, and CPU cores.
  4. If you want to restore the backup to a new VM without overwriting the original one, click the remote storage (nfs-backups, in our case), click the Backups container, select a particular backup, and click Restore.

    Manually browsing remote storage for backups

    Manually browsing remote storage for backups

  5. In this way, you will see a completely different option to restore the backup to a new VM without affecting the original one.

    Restoring a backup to a new VM in Proxmox

    Restoring a backup to a new VM in Proxmox

Scheduled Proxmox backup jobs

The on-demand backup option is fine, but when you have a lot of VMs running in multiple hosts (nodes), you need a better approach. Proxmox allows you to schedule backup jobs where you can back up selected or all VMs on all nodes. To schedule a backup job, follow these steps:

  1. Click the Datacenter node on the top, select the Backup option, and then click the Add button. The Some guests are not covered by any backup job message on the backup page gives you a hint that certain VMs and containers are not covered by any backup schedule. You can click the Show button to view such guests.

    Backup job page in the Proxmox web GUI

    Backup job page in the Proxmox web GUI

  2. Now configure the settings for the backup job, as shown in the screenshot:

    Backup job settings in Proxmox

    Backup job settings in Proxmox

  3. For Node, select a particular node or all cluster nodes.
  4. For Storage, select the remote storage where you want to store your backups.
  5. For Schedule, configure the preferred backup schedule.
  6. For Selection mode, select All to back up all VMs. Alternatively, you could include or exclude the selected VMs.
  7. Enter an email address to receive email notifications about backup failure.
  8. For compression, select the desired compression level. The default is ZSTD, which is fast and sufficient.
  9. For Backup mode, select Snapshot mode since it offers the least amount of downtime for VMs. The suspend and stop backup modes cause VM downtime during backup.
  10. You can configure backup retention on the Retention tab:
    Configure backup retention in Proxmox

    Configure backup retention in Proxmox

    1. To experiment with various backup schedules and pruning options, you can check out the prune simulator.
    2. To restore a backup, click the backup storage, select a particular backup, and click the Restore button, as discussed in the on-demand backup section.

      Restoring a backup in Proxmox

      Restoring a backup in Proxmox

Conclusion

You just learned how to work with the backup feature in Proxmox VE.

Subscribe to 4sysops newsletter!

For more advanced backup and restore features, you can use the Proxmox backup server. This is another popular open-source enterprise backup solution that enables you to restore physical hosts as well.

avatar
0 Comments

Leave a reply

Your email address will not be published. Required fields are marked *

*

© 4sysops 2006 - 2023

CONTACT US

Please ask IT administration questions in the forums. Any other messages are welcome.

Sending

Log in with your credentials

or    

Forgot your details?

Create Account