restic/internal/backend
Michael Eischer c73316a111 backends: add sanity check for the uploaded file size
Bugs in the error handling while uploading a file to the backend could
cause incomplete files, e.g. https://github.com/golang/go/issues/42400
which could affect the local backend.

Proactively add sanity checks which will treat an upload as failed if
the reported upload size does not match the actual file size.
2021-01-29 13:51:51 +01:00
..
azure backends: add sanity check for the uploaded file size 2021-01-29 13:51:51 +01:00
b2 backends: add sanity check for the uploaded file size 2021-01-29 13:51:51 +01:00
gs backends: add sanity check for the uploaded file size 2021-01-29 13:51:51 +01:00
local backends: add sanity check for the uploaded file size 2021-01-29 13:51:51 +01:00
location Hide password from repository URLs 2020-09-22 22:00:51 +02:00
mem backends: add sanity check for the uploaded file size 2021-01-29 13:51:51 +01:00
rclone Remove `--drive-use-trash=false` from rclone param 2020-11-13 22:58:48 +00:00
rest Make invalid handles permanent errors 2020-12-17 12:47:53 +01:00
s3 backends: add sanity check for the uploaded file size 2021-01-29 13:51:51 +01:00
sftp backends: add sanity check for the uploaded file size 2021-01-29 13:51:51 +01:00
swift swift: explicitly pass upload size to library 2021-01-29 13:50:46 +01:00
test Use "pack file" instead of "data file" (#2885) 2020-08-16 11:16:38 +02:00
testdata Moves files 2017-07-23 14:19:13 +02:00
backend_error.go backend: Improve Save() 2018-03-03 15:49:44 +01:00
backend_retry.go retrybackend: Fail operations when context is already canceled 2020-12-28 21:06:47 +01:00
backend_retry_test.go backend: test that a canceled context prevents RetryBackend operations 2020-12-28 21:06:47 +01:00
doc.go Moves files 2017-07-23 14:19:13 +02:00
foreground.go Sanitize environment before starting backend processes (rclone, ssh) 2020-11-02 16:41:23 +01:00
foreground_sysv.go AIX port 2020-12-29 01:35:01 +01:00
foreground_test.go Sanitize environment before starting backend processes (rclone, ssh) 2020-11-02 16:41:23 +01:00
foreground_unix.go AIX port 2020-12-29 01:35:01 +01:00
foreground_windows.go Sanitize environment before starting backend processes (rclone, ssh) 2020-11-02 16:41:23 +01:00
http_transport.go http backend: Parse the correct argument when loading --tls-client-cert 2018-04-30 15:21:09 -07:00
layout.go Wire context into backend layout detection 2020-10-09 22:37:24 +02:00
layout_default.go Use "pack file" instead of "data file" (#2885) 2020-08-16 11:16:38 +02:00
layout_rest.go backend: Only return top-level files for most dirs 2017-12-14 19:14:16 +01:00
layout_s3legacy.go Use "pack file" instead of "data file" (#2885) 2020-08-16 11:16:38 +02:00
layout_test.go Wire context into backend layout detection 2020-10-09 22:37:24 +02:00
paths.go Moves files 2017-07-23 14:19:13 +02:00
semaphore.go uint cannot be less than zero 2020-09-05 10:07:16 +02:00
shell_split.go Refactor SplitShellStrings 2018-04-01 10:16:31 +02:00
shell_split_test.go Refactor SplitShellStrings 2018-04-01 10:16:31 +02:00
utils.go Flatten backend.LimitedReadCloser structure 2020-06-17 13:11:45 +02:00
utils_test.go Use "pack file" instead of "data file" (#2885) 2020-08-16 11:16:38 +02:00