From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 439D21FF09F for ; Tue, 01 Dec 2026 10:11:21 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 262E421677; Tue, 01 Dec 2026 10:11:18 +0100 (CET) From: Dietmar Maurer To: pbs-devel@lists.proxmox.com Subject: [PATCH proxmox-backup 0/5] client: report or fail on files left out for lack of permission Date: Tue, 1 Dec 2026 10:11:06 +0100 Message-ID: <20261201091111.940190-1-dietmar@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 1 AWL -0.475 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods RDNS_NONE 1.274 Delivered to internal network by a host with no rDNS SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record Message-ID-Hash: BSBYST4ZTILSEUBW2MEDJ4UOI5TCDHYN X-Message-ID-Hash: BSBYST4ZTILSEUBW2MEDJ4UOI5TCDHYN X-MailFrom: dietmar@zilli.proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox Backup Server development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: A backup leaves out files and directories it cannot read for lack of permission and only logs a warning, so the run still succeeds. The graphical backup client needs to tell such a run apart from a complete one: it reports it as incomplete, and it can fail it instead. This series adds the hooks for that to the pxar archiver, and a --fail-on-access-denied option to proxmox-backup-client for the same reason. Patch 1 moves the open error handling to the call sites; no functional change is intended. Patch 2 makes the warning for an unreadable .pxarexclude name its directory. Patches 3 and 4 add an optional callback for entries left out for lack of permission, and an option to fail the archive at the first one. Both are unset by default, so existing callers behave as before. Patch 5 exposes the fail option on the CLI. An unreadable .pxarexclude is treated like an unreadable entry, even when a pattern excludes it, because skipping its patterns can add much more data than intended. Dietmar Maurer (5): client: pxar: handle open errors at the call sites client: pxar: name the directory of an unreadable .pxarexclude client: pxar: let callers see entries left out for lack of permission client: pxar: optionally fail on entries left out for lack of permission client: backup: add option to fail on files that cannot be read pbs-client/src/pxar/create.rs | 204 +++++++++++++----- proxmox-backup-client/src/main.rs | 11 + .../src/proxmox_restore_daemon/api.rs | 2 + pxar-bin/src/main.rs | 2 + 4 files changed, 164 insertions(+), 55 deletions(-) base-commit: 3e6b0575f0ed96ffedeab4becc9cb883d8f06ee1 -- 2.47.3