public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH proxmox-backup 0/5] client: report or fail on files left out for lack of permission
@ 2026-12-01  9:11 Dietmar Maurer
  2026-12-01  9:11 ` [PATCH proxmox-backup 1/5] client: pxar: handle open errors at the call sites Dietmar Maurer
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Dietmar Maurer @ 2026-12-01  9:11 UTC (permalink / raw)
  To: pbs-devel

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




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

end of thread, other threads:[~2026-12-01  9:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01  9:11 [PATCH proxmox-backup 0/5] client: report or fail on files left out for lack of permission Dietmar Maurer
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

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