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.
This commit is contained in:
Michael Eischer
2025-06-12 22:23:40 +02:00
parent a8ce2e45cc
commit c8bb7bd312

View File

@@ -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)
}