mirror of
https://github.com/restic/restic.git
synced 2026-02-03 12:29:37 -05:00
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:
parent
73995b818a
commit
fc81df3f54
1 changed files with 6 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue