Handle lack of space and remove broken files in SFTP backend

This commit is contained in:
greatroar
2021-03-16 21:35:10 +01:00
parent 187a77fb27
commit dc88ca79b6
2 changed files with 53 additions and 3 deletions

View File

@@ -0,0 +1,8 @@
Enhancement: SFTP backend now checks for disk space
Backing up over SFTP previously spewed multiple generic "failure" messages
when the remote disk was full. It now checks for disk space before writing
a file and fails immediately with a "no space left on device" message.
https://github.com/restic/restic/issues/3336
https://github.com/restic/restic/pull/3345