all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] look-ahead in regex group filter for sync jobs not allowed
@ 2023-03-01 17:09 Harald Leithner
  2023-03-02  8:12 ` Fabian Grünbichler
  0 siblings, 1 reply; 3+ messages in thread
From: Harald Leithner @ 2023-03-01 17:09 UTC (permalink / raw)
  To: pbs-devel


[-- Attachment #1.1.1: Type: text/plain, Size: 644 bytes --]

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?

thanks

Harald

-- 
ITronic

Harald Leithner
Lichtäckerstraße 22, A-2522 Oberwaltersdorf
Tel: +43-1-545 0 604, Mobil: +43-699-123 78 4 78
Mail: leithner@itronic.at | itronic.at

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 2485 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 665 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [pbs-devel] look-ahead in regex group filter for sync jobs not allowed
  2023-03-01 17:09 [pbs-devel] look-ahead in regex group filter for sync jobs not allowed Harald Leithner
@ 2023-03-02  8:12 ` Fabian Grünbichler
  2023-03-02 17:22   ` Harald Leithner
  0 siblings, 1 reply; 3+ messages in thread
From: Fabian Grünbichler @ 2023-03-02  8:12 UTC (permalink / raw)
  To: Proxmox Backup Server development discussion

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 ;)




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [pbs-devel] look-ahead in regex group filter for sync jobs not allowed
  2023-03-02  8:12 ` Fabian Grünbichler
@ 2023-03-02 17:22   ` Harald Leithner
  0 siblings, 0 replies; 3+ messages in thread
From: Harald Leithner @ 2023-03-02 17:22 UTC (permalink / raw)
  To: pbs-devel


[-- Attachment #1.1.1: Type: text/plain, Size: 1568 bytes --]

Hi,

thanks for the bugzilla link. Hope you find sometime for this feature.

Having 2 lists (include and exclude) would be a flexibel solution since 
the filter is a OR filter...

regards,

Harald


Am 02.03.2023 um 09:12 schrieb Fabian Grünbichler:
> 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 ;)
> 
> 
> _______________________________________________
> pbs-devel mailing list
> pbs-devel@lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
> 

-- 
ITronic

Harald Leithner
Lichtäckerstraße 22, A-2522 Oberwaltersdorf
Tel: +43-1-545 0 604, Mobil: +43-699-123 78 4 78
Mail: leithner@itronic.at | itronic.at

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 2485 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 665 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-02 17:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-01 17:09 [pbs-devel] look-ahead in regex group filter for sync jobs not allowed Harald Leithner
2023-03-02  8:12 ` Fabian Grünbichler
2023-03-02 17:22   ` Harald Leithner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal