mirror of
https://github.com/octoleo/restic.git
synced 2024-11-18 11:05:18 +00:00
Merge pull request #690 from zcalusic/master
Even if file changes size during backup, still save it
This commit is contained in:
commit
dbdfed6343
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user