1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2024-12-24 08:44:52 +00:00
restic/internal/backend
Michael Eischer 257740b0cc b2: Successful delete if file does not exist
When deleting a file, B2 sometimes returns a "500 Service Unavailable"
error but nevertheless correctly deletes the file. Due to retries in
the B2 library blazer, we sometimes also see a "400 File not present"
error. The retries of restic for the delete request then fail with
"404 File with such name does not exist.".

As we have to rely on request retries in a distributed system to handle
temporary errors, also consider a delete request to be successful if the
file is reported as not existing. This should be safe as B2 claims to
provide a strongly consistent bucket listing and thus a missing file
shouldn't mysteriously show up again later on.
2021-10-09 23:51:12 +02:00
..
azure azure: check upload using md5 content hash 2021-08-04 22:17:46 +02:00
b2 b2: Successful delete if file does not exist 2021-10-09 23:51:12 +02:00
dryrun Add plumbing to calculate backend specific file hash for upload 2021-08-04 22:17:46 +02:00
gs gs/swift: calculate md5 content hash for upload 2021-08-04 22:17:46 +02:00
local Add plumbing to calculate backend specific file hash for upload 2021-08-04 22:17:46 +02:00
location Hide password from repository URLs 2020-09-22 22:00:51 +02:00
mem Simplify cache logic 2021-09-03 21:01:00 +02:00
rclone rclone: Return one fewer value from run 2021-08-26 18:12:08 +02:00
rest rest: Fix test backend url 2021-08-15 18:16:17 +02:00
s3 s3: Add warning if key ID or secret is empty 2021-10-06 23:13:40 +01:00
sftp Add plumbing to calculate backend specific file hash for upload 2021-08-04 22:17:46 +02:00
swift swift: restore context err check for list() 2021-09-24 21:19:46 +02:00
test backends: Remove TestSaveFilenames test 2021-08-15 18:24:16 +02:00
testdata
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 Add plumbing to calculate backend specific file hash for upload 2021-08-04 22:17:46 +02:00
doc.go
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 errcheck: Add error checks 2021-01-30 20:02:37 +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 Add --insecure-tls flag to disable SSL cert verification 2021-09-21 10:52:40 -04: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
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
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 Add more error handling 2021-01-30 20:19:47 +01:00
utils_test.go Add plumbing to calculate backend specific file hash for upload 2021-08-04 22:17:46 +02:00