ayufan / pve-patches

Repository with public Proxmox patches
223 stars 54 forks source link

Exclude disk from VM backup #51

Closed abhishekakt1 closed 4 years ago

abhishekakt1 commented 4 years ago

I have scheduled proxmox backup job which runs fine. I have a vm which has additional disk from another hard drive. I want to exclude that from the backup. Is there is any way I can define exclude disk option?

INFO: trying to get global lock - waiting... INFO: got global lock INFO: starting new backup job: vzdump 132 --node proxmox --storage ONETB --mode snapshot --remove 0 --compress lzo --mailto email@gmail.com INFO: Starting Backup of VM 132 (qemu) INFO: Backup started at 2020-05-13 23:35:17 INFO: status = running INFO: update VM 132: -lock backup INFO: VM Name: zoneminder INFO: include disk 'scsi1' 'ONETB:132/vm-132-disk-0.raw' 200G INFO: include disk 'virtio0' 'ONETB:132/vm-132-disk-1.qcow2' 32G INFO: backup mode: snapshot INFO: ionice priority: 7 INFO: creating archive '/mnt/pve/ONETB/dump/vzdump-qemu-132-2020_05_13-23_35_17.vma.lzo' INFO: issuing guest-agent 'fs-freeze' command INFO: issuing guest-agent 'fs-thaw' command INFO: started backup task '9d652773-b4c2-4dd6-9979-bc0b02fe104c'

In this case, I want to exclude 200G disk vm-132-disk-0.raw from backing up. I dont have enough space to take regular backup nor it is super critical data to backup however, I want to ensure OS disk is backed up and I can restore the vm in case of disaster.

Thanks.

Abhishek

abhishekakt1 commented 4 years ago

Nevermind. Found the solution. Should have Google first.

Posting the solution incase someone need.

Simple fix is to open the disk and uncheck ""Backup""

image

INFO: starting new backup job: vzdump 132 --compress lzo --mailto email@gmail.com --storage HARDDISK --node proxmox --remove 0 --mode snapshot INFO: Starting Backup of VM 132 (qemu) INFO: Backup started at 2020-05-14 00:08:13 INFO: status = running INFO: update VM 132: -lock backup INFO: VM Name: zoneminder INFO: exclude disk 'scsi1' 'ONETB:132/vm-132-disk-0.raw' (backup=no) INFO: include disk 'virtio0' 'ONETB:132/vm-132-disk-1.qcow2' 32G INFO: backup mode: snapshot INFO: ionice priority: 7 INFO: creating archive '/mnt/pve/HARDDISK/dump/vzdump-qemu-132-2020_05_14-00_08_13.vma.lzo' INFO: issuing guest-agent 'fs-freeze' command INFO: issuing guest-agent 'fs-thaw' command INFO: started backup task 'fae320e4-9ed2-46ed-aead-e131db7b8579'