Excluding paths during Backup

Robert_

Renowned Member
Oct 10, 2010
27
0
66
Hi everybody,

i was wondering if it possible to exlude a path in a vm during the Backup??

I am trying to backup a vm which has mounted 3x 1.5 TB drives. Now i dont need to backup the files on these discs so i would like to exlude them from the backup.

cheers in advance for assistant.

kind regards,
 
yes, you can exclude virtual disks from backup (KVM guests), see 'man qm'
 
mind you, i was not talking about virtual discs. Those are physical discs passed through to the vm. Is that also possible?
 
afaik it makes no difference - you can exclude all disk types.
 
thats perfect. I have just looked into the qm man but i am afraid i can not find anything regarding excluding discs from backup. Can you push me a little further in the right direction?

The only thing i found regarding backups had to do with the Lock thats beeing created during backups.

thanks again.
 
in the case of ide disks, see this part of man qm:


Code:
ide0 - ide3: [volume=]volume,][,media=cdrom|disk]
       [,cyls=c,heads=h,secs=s[,trans=t]] [,snapshot=on|off]
       [,cache=none|writethrough"|writeback] [,format=f][,backup=yes|no]
        Use volume as IDE hard disk or CD-ROM.

example (just edit your /etc/qemu-server/VMID.conf):

Code:
...
ide0: local:136/vm-136-disk-1.raw,backup=no
ide1: /dev/sdc1,backup=no
...

does this work for you?
 
simply perfect. Thank you very very much. I will try this as soon as i can.

thanks again for the amazing support.

cherrio,