0

I've several qemu vm's managed with virsh. I've already created a backup of the images. Now I want to create a backup of the config files. How can I do that?

The only solution I've figured out so fare is: virsh dumpxml vmname > bachuk.xmlsee. But this stores only one machine.

Is there a simple way to get just all of the configs with simple commands?

Cutton Eye
  • 343
  • 4
  • 14

1 Answers1

1

The entire libvirt configuration is stored in various files in the /etc/libvirt directory, which you can back up via any means you wish.

Michael Hampton
  • 244,070
  • 43
  • 506
  • 972
  • hmmm I was looking at `/var/libvirt/...` found some files there. Probably this was an old install dir or it's default. don't know, do you? thx! – Cutton Eye Sep 30 '19 at 10:18
  • 1
    @CuttonEye `/var/lib/libvirt` stores virtual machine backing stores, such as virtual disks, ISO images, boot files, etc. You should also back up this directory, though because the files in here may be very large, you may want a different backup strategy than for the configuration files. – Michael Hampton Sep 30 '19 at 18:27