Go to file
Aaron Lauterer df5875b41e vzdump: move remaining guest include logic to single method
The `guest include` logic handling `all` and `exclude` parameters was in
the `PVE::VZDump->exec_backup()` method. Moving this logic into the
`get_included_guests` method allows us to simplify and generalize it.

This helps to make the overall logic easier to test and develop other
features around vzdump backup jobs.

The method now returns a hash with node names as keys mapped to arrays
of VMIDs on these nodes that are included in the vzdump job.

The VZDump API call to create a new backup is adapted to use the new
method to create the list of local VMIDs and the skiplist.

Permission checks are kept where they are to be able to handle missing
permissions according to the current context. The old behavior to die
on a backup job when the user is missing the permission to a guest and
the job is not an 'all' or 'exclude' job is kept.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
2020-06-17 15:16:06 +02:00
aplinfo update aplinfo 2020-05-08 17:43:31 +02:00
bin cert renew: note reason why renewal due to long lifetime is done 2020-04-27 18:28:59 +02:00
configs buildsys: fixup: fully remove pve-apt-hook mentionings 2019-06-28 10:57:03 +02:00
debian d/control: update versioned dependency for widget-toolkit 2020-06-16 17:01:56 +02:00
network-hooks ifupdown1: bridgevlan: add bridge-vids list support 2020-01-11 17:22:46 +01:00
PVE vzdump: move remaining guest include logic to single method 2020-06-17 15:16:06 +02:00
services pvesr service: order after pve-cluster 2019-11-28 10:54:12 +01:00
test vzdump: test: add first tests to the guest include logic 2020-06-08 15:54:42 +02:00
www dc/Tasks: pass endtime to make duration calculation correct 2020-06-16 17:00:26 +02:00
.gitignore Extend the .gitignore(s) 2018-05-04 14:50:04 +02:00
defines.mk fix #844: allow to pre-delay start-all-marked guests on boot 2019-11-20 20:20:58 +01:00
Makefile pvecfg: adapt version and release semantic 2019-05-26 16:11:43 +02:00
spice-example-sh doc: spice-example-sh: support special characters in passwords 2017-10-05 13:57:27 +02:00
vzdump-hook-script.pl vzdump: hook script example: s/openvz/lxc/ 2018-11-05 10:33:34 +01:00