From c8bb7bd312c8cad7e49c92e9c18a9979f2e9218f Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Thu, 12 Jun 2025 22:23:40 +0200 Subject: [PATCH] backup: do not fail backup is some parent folder is inaccessible Handle errors for parent directories of backup directories in the same way as all other file access errors during a backup. --- internal/archiver/archiver.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/archiver/archiver.go b/internal/archiver/archiver.go index e509f9f85..981b1fecc 100644 --- a/internal/archiver/archiver.go +++ b/internal/archiver/archiver.go @@ -723,8 +723,14 @@ func (arch *Archiver) saveTree(ctx context.Context, snPath string, atree *tree, arch.trackItem(snItem, oldNode, n, is, time.Since(start)) }) if err != nil { + err = arch.error(join(snPath, name), err) + if err == nil { + // ignore error + continue + } return futureNode{}, 0, err } + nodes = append(nodes, fn) }