mirror of
https://github.com/restic/restic.git
synced 2026-10-11 12:37:13 +00:00
sftp: Implement atomic uploads
Create a temporary file with a sufficiently random name to essentially avoid any chance of conflicts. Once the upload has finished remove the temporary suffix. Interrupted upload thus will be ignored by restic.
This commit is contained in:
1 parent
cc90f2ba6b
commit
5ec312ca06
2 files changed
+33
-4
No files matched your search
@@ -0,0 +1,10 @@
|
||||
Enhancement: Atomic uploads for SFTP
|
||||
|
||||
The SFTP backend did not upload files atomically. An interrupted upload could
|
||||
leave an incomplete file behind which could prevent restic from accessing the
|
||||
repository.
|
||||
|
||||
Uploads in the SFTP backend are now done atomically.
|
||||
|
||||
https://github.com/restic/restic/issues/3003
|
||||
https://github.com/restic/restic/pull/3524
|
||||
Reference in new issue
Block a user