Merge pull request #690 from zcalusic/master

Even if file changes size during backup, still save it
This commit is contained in:
Alexander Neumann 2016-12-10 12:36:56 +01:00
commit dbdfed6343
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ func updateNodeContent(node *restic.Node, results []saveResult) error {
}
if bytes != node.Size {
return errors.Errorf("errors saving node %q: saved %d bytes, wanted %d bytes", node.Path, bytes, node.Size)
fmt.Fprintf(os.Stderr, "warning for %v: expected %d bytes, saved %d bytes\n", node.Path, node.Size, bytes)
}
debug.Log("SaveFile(%q): %v blobs\n", node.Path, len(results))