Re: [pve-devel] [PATCH manager] Delete "exclude" when switching a backup job to pool

2019-08-14 Thread Thomas Lamprecht
Am 8/14/19 um 3:23 PM schrieb Stefan Reiter: >> >> But then the WebGUI would need to be adapted to cope with such a case, >> as currently adding excludes to a pool based backup job results in a >> rather strange and wrong visualization, e.g., "All except 1074" here, >> but all is not selected and e

Re: [pve-devel] [PATCH manager] Delete "exclude" when switching a backup job to pool

2019-08-14 Thread Stefan Reiter
On 8/14/19 12:03 PM, Thomas Lamprecht wrote: Am 8/6/19 um 2:41 PM schrieb Stefan Reiter: I don't see a reason to blanket-forbid excluding VMs in pool backups, so I felt leaving the API unchanged was the better option in this case. The GUI is the broken part, the API is working fine, albeit for

Re: [pve-devel] [PATCH manager] Delete "exclude" when switching a backup job to pool

2019-08-14 Thread Thomas Lamprecht
Am 8/6/19 um 2:41 PM schrieb Stefan Reiter: > I don't see a reason to blanket-forbid excluding VMs in pool backups, so I > felt leaving the API unchanged was the better option in this case. The GUI is > the broken part, the API is working fine, albeit for a use-case it wasn't > intentionally des

Re: [pve-devel] [PATCH manager] Delete "exclude" when switching a backup job to pool

2019-08-06 Thread Stefan Reiter
I don't see a reason to blanket-forbid excluding VMs in pool backups, so I felt leaving the API unchanged was the better option in this case. The GUI is the broken part, the API is working fine, albeit for a use-case it wasn't intentionally designed for. That said, I'm fine with either change.

Re: [pve-devel] [PATCH manager] Delete "exclude" when switching a backup job to pool

2019-08-06 Thread Tim Marx
Thanks for spotting this one. IMHO this would be better fixed in the API, unless we really want to allow pool backups which exclude vms: diff --git a/PVE/API2/Backup.pm b/PVE/API2/Backup.pm index bf9a3330..6c2e16c3 100644 --- a/PVE/API2/Backup.pm +++ b/PVE/API2/Backup.pm @@ -476,6 +476,7 @@ __PACK

[pve-devel] [PATCH manager] Delete "exclude" when switching a backup job to pool

2019-08-06 Thread Stefan Reiter
Previously, if you selected a job in "exclude" mode (in DC GUI) with some VMIDs selected and then switched that backup job to "pool", the backup job would retain the "exclude" section and thus not back up all VMs. The backend technically supports this, but the GUI would then misrepresent this, sho