restic/internal/backend
Michael Eischer e483b63c40 retrybackend: Fail operations when context is already canceled
Depending on the used backend, operations started with a canceled
context may fail or not. For example the local backend still works in
large parts when called with a canceled context. Backends transfering
data via http don't work. It is also not possible to retry failed
operations in that state as the RetryBackend will abort with a 'context
canceled' error.

Ensure uniform behavior of all backends by checking for a canceled
context by checking for a canceled context as a first step in the
RetryBackend. This ensures uniform behavior across all backends, as
backends are always wrapped in a RetryBackend.
2020-12-28 21:06:47 +01:00
..
azure Make invalid handles permanent errors 2020-12-17 12:47:53 +01:00
b2 Make invalid handles permanent errors 2020-12-17 12:47:53 +01:00
gs do not require gs bucket permissions to init repository 2020-11-18 06:14:11 -08:00
local Don't retry when "Permission denied" occurs in local backend 2020-12-22 23:41:12 +01:00
location Hide password from repository URLs 2020-09-22 22:00:51 +02:00
mem Make invalid handles permanent errors 2020-12-17 12:47:53 +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 Make invalid handles permanent errors 2020-12-17 12:47:53 +01:00
sftp Make invalid handles permanent errors 2020-12-17 12:47:53 +01:00
swift Make invalid handles permanent errors 2020-12-17 12:47:53 +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 Upgrade github.com/cenkalti/backoff module 2020-10-07 22:04:59 +02: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_solaris.go Sanitize environment before starting backend processes (rclone, ssh) 2020-11-02 16:41:23 +01:00
foreground_test.go Sanitize environment before starting backend processes (rclone, ssh) 2020-11-02 16:41:23 +01:00
foreground_unix.go Sanitize environment before starting backend processes (rclone, ssh) 2020-11-02 16:41:23 +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