mirror of
https://github.com/restic/restic.git
synced 2026-10-21 00:18:12 +00:00
Save cached files to a temporary location first
This commit is contained in:
1 parent
f9b6f8fd45
commit
ea04f40eb3
4 files changed
+110
-81
No files matched your search
@@ -0,0 +1,12 @@
|
||||
Bugfix: Make cache crash-resistant and usable by multiple concurrent processes
|
||||
|
||||
The restic cache directory ($RESTIC_CACHE_DIR) could end up in a broken state
|
||||
in the event of restic (or the OS) crashing. This is now less likely to occur
|
||||
as files are downloaded to a temporary location before being moved in place.
|
||||
|
||||
This also allows multiple concurrent restic processes to operate on a single
|
||||
repository without conflicts. Previously, concurrent operations could cause
|
||||
segfaults because the processes saw each other's partially downloaded files.
|
||||
|
||||
https://github.com/restic/restic/issues/2345
|
||||
https://github.com/restic/restic/pull/2838
|
||||
Reference in new issue
Block a user