Merge pull request #3243 from restic/fix-scanner-overlap

backup: Fix total size for overlapping targets
This commit is contained in:
Alexander Neumann authored and GitHub committed 2021-01-30 21:17:21 +01:00
commit 0e5f2fff71
5 files changed
+84 -25

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
Bugfix: Show correct statistics for overlapping targets
A user reported that restic's statistics and progress information during backup
is not correctly calculated when the backup targets (files/dirs to save)
overlap. For example, consider a directory `foo` which contains (among others)
a file `foo/bar`. When `restic backup foo foo/bar` is run, restic counted the
size of the file `foo/bar` twice, so the completeness percentage as well as the
number of files was wrong. This is now corrected.
https://github.com/restic/restic/issues/3232
https://github.com/restic/restic/pull/3243