From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 1172180C9 for ; Thu, 2 Mar 2023 09:13:15 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id DE654DF1 for ; Thu, 2 Mar 2023 09:12:44 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Thu, 2 Mar 2023 09:12:44 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id CB46A48D5E for ; Thu, 2 Mar 2023 09:12:43 +0100 (CET) Date: Thu, 02 Mar 2023 09:12:35 +0100 From: Fabian =?iso-8859-1?q?Gr=FCnbichler?= To: Proxmox Backup Server development discussion References: <3a32f3c5-65b5-b8c5-a78e-cc14983bdf10@itronic.at> In-Reply-To: <3a32f3c5-65b5-b8c5-a78e-cc14983bdf10@itronic.at> MIME-Version: 1.0 User-Agent: astroid/0.16.0 (https://github.com/astroidmail/astroid) Message-Id: <1677744438.gjvc3ux8mm.astroid@yuna.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-SPAM-LEVEL: Spam detection results: 0 AWL 0.124 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [proxmox.com] Subject: Re: [pbs-devel] look-ahead in regex group filter for sync jobs not allowed X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Mar 2023 08:13:15 -0000 On March 1, 2023 6:09 pm, Harald Leithner wrote: > Hi, >=20 > 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=20 > (negativ) look-ahead. >=20 > It's possible that my regex foo is not good enough but I think also for=20 > the filter types "Type" and "Group" it should be possible to invert the=20 > filter. >=20 > I would believe it's a common use case to sync this one big vm separate=20 > from the tiny vms. >=20 > Or do I miss something? it's one of the parts that's still missing, there are basically two approac= hes - add some flag to individual filters to invert them (e.g., prefix them wit= h '!') - add a second filter parameter for exclusion and we haven't decided on one yet. shouldn't be too hard to implement thoug= h. https://bugzilla.proxmox.com/show_bug.cgi?id=3D4315 in case you want to sub= scribe for updates ;)