[pbs-devel] look-ahead in regex group filter for sync jobs not allowed

Fabian Grünbichler f.gruenbichler at proxmox.com
Thu Mar 2 09:12:35 CET 2023


On March 1, 2023 6:09 pm, Harald Leithner wrote:
> Hi,
> 
> I try to exclude one vm from a sync job but it seems it's not possible.
> There is no invert option for filter and the regex doesn't allow 
> (negativ) look-ahead.
> 
> It's possible that my regex foo is not good enough but I think also for 
> the filter types "Type" and "Group" it should be possible to invert the 
> filter.
> 
> I would believe it's a common use case to sync this one big vm separate 
> from the tiny vms.
> 
> Or do I miss something?

it's one of the parts that's still missing, there are basically two approaches
- add some flag to individual filters to invert them (e.g., prefix them with '!')
- add a second filter parameter for exclusion

and we haven't decided on one yet. shouldn't be too hard to implement though.

https://bugzilla.proxmox.com/show_bug.cgi?id=4315 in case you want to subscribe
for updates ;)





More information about the pbs-devel mailing list