public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Dietmar Maurer <dietmar@proxmox.com>
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	[thread overview]
Message-ID: <20261201091111.940190-1-dietmar@proxmox.com> (raw)

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




             reply	other threads:[~2026-12-01  9:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  9:11 Dietmar Maurer [this message]
2026-12-01  9:11 ` [PATCH proxmox-backup 1/5] client: pxar: handle open errors at the call sites Dietmar Maurer
2026-12-01  9:11 ` [PATCH proxmox-backup 2/5] client: pxar: name the directory of an unreadable .pxarexclude Dietmar Maurer
2026-12-01  9:11 ` [PATCH proxmox-backup 3/5] client: pxar: let callers see entries left out for lack of permission Dietmar Maurer
2026-12-01  9:11 ` [PATCH proxmox-backup 4/5] client: pxar: optionally fail on " Dietmar Maurer
2026-12-01  9:11 ` [PATCH proxmox-backup 5/5] client: backup: add option to fail on files that cannot be read Dietmar Maurer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261201091111.940190-1-dietmar@proxmox.com \
    --to=dietmar@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal