How To: Proxmox Live Backup

In this post, I will show, how to configure and schedule proxmox live backup to get a full backup of your VM without downtime. I use this for my server once a week and save the created backup to an external backup device.

Configure Proxmox Live Backup

The proxmox live backup uses the snapshot technology of vzdump. This will backup the container without stopping the VM. This makes it really useful for productive environments.

To configure proxmox live backup, login to your proxmox host and head over to backup:

Proxmox-Live-Backup-Add-New-Job
Proxmox-Live-Backup-Add-New-Job

Press “Add” to create a new backup job:

Proxmox-Live-Backup-Create-New-Job
Proxmox-Live-Backup-Create-New-Job

You can run the job on all or a specific node. As I have only one node, I only run the job on this one. You also have to select a storage. You can either create a new one, or use the default one and enable this one to be used as a backup storage as well. I chose the last one. You should select the appropriate timing for the backup. I will run it in the night to reduce the performance impact. I included all available VM’s and send a mail to my mail account every time, the job is running.

You have to select “snapshot” as the mode, as only this mode will allow online backups. All other modes will pause or shutdown the vm.

Clicking create will create the job and the job will run as scheduled.

Restore Proxmox Live Backup

To restore a proxmox live backup you have two options. The first one is useful, when you have broken your VM, but the host itself is still running. Just select the VM and go to “Backup”:

Restore-Proxmox-Live-Backup
Restore-Proxmox-Live-Backup

Select the backup you wish to restore and hit “restore”. The process will take a while and afterwards the VM will be in the stopped state and can be started.

The second option is to deploy the backup to a new server. You have to create a storage which can contain backups on the new server, upload the backup file and then go to this storage:

Proxmox-Live-Backup-Restore-on-new-Server
Proxmox-Live-Backup-Restore-on-new-Server

Select the uploaded backup file and click restore. This will create a new VM using the backup file. After the restore process is finished you should check the network configuration and start the VM.

If you have any questions, regarding this post or if you would like provide feedback, please use the comment function below.

4 thoughts on “How To: Proxmox Live Backup”

  1. Thanks for article!

    Can you answer a few of my questions?

    1) 100,101 is it Contrainters or VirtualMachines?
    2) As i remember, so zadump is used for dump OpenVZ-containers. So, is it Containers? LXC?
    3) What kind of storage do you use? As i recall, you must use LVM or ZFS for live-backup OpenVZ. Correct me, if i'm wrong.

  2. Hi Fredyk,

    thanks for your comment. Here are your answers:
    1. yes, my vm's are 100 and 101
    2. I use vzdump and this is for KVM vm's, openvz and LXc. In my case, I use KVM vm's
    3. For openvz and LXC you are correct, for KVM (Qemu) this works without the need of LVM on the system, have a look here:
    Efficient VM backup for qemu

    BR
    Florian

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: