forked from TrueCloudLab/restic
Merge pull request #690 from zcalusic/master
Even if file changes size during backup, still save it
This commit is contained in:
commit
dbdfed6343
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue