mirror of
https://github.com/restic/restic.git
synced 2026-10-13 13:37:12 +00:00
s3: enable content hash calculation for uploads
This commit is contained in:
1 parent
553ea36ca6
commit
ee2f14eaf0
2 files changed
+3
No files matched your search
@@ -200,6 +200,7 @@ func (be *b2Backend) Save(ctx context.Context, h restic.Handle, rd restic.Rewind
|
||||
debug.Log("Save %v, name %v", h, name)
|
||||
obj := be.bucket.Object(name)
|
||||
|
||||
// b2 always requires sha1 checksums for uploaded file parts
|
||||
w := obj.NewWriter(ctx)
|
||||
n, err := io.Copy(w, rd)
|
||||
debug.Log(" saved %d bytes, err %v", n, err)
|
||||
|
||||
Reference in new issue
Block a user