archiver: ignore files removed in the meantime

This commit is contained in:
Michael Eischer
2024-11-02 22:55:16 +01:00
parent 8642049532
commit c5fb46da53
3 changed files with 71 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
Bugfix: Ignore disappeared backup source files
If during a backup files were removed between restic listing the directory
content and backing up the file in question, the following error could occur:
```
error: lstat /some/file/name: no such file or directory
```
The backup command now ignores this particular error and silently skips the
removed file.
https://github.com/restic/restic/issues/2165
https://github.com/restic/restic/issues/3098
https://github.com/restic/restic/pull/5143
https://github.com/restic/restic/pull/5145