backend/sftp: fix removing files on windows sftp

This commit is contained in:
Michael Eischer committed 2026-06-23 19:14:54 +02:00
1 parent 27c44c11aa
commit debf95f58d
2 files changed
+43 -2

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
Bugfix: Remove read-only files via the SFTP backend on Windows servers
Since restic 0.19.0, repository files on the SFTP backend are marked
read-only after save. On Windows SFTP servers, removing them failed
with a permission error. The SFTP backend now clears the read-only flag
before removing the file.
https://github.com/restic/restic/issues/21895
https://github.com/restic/restic/pull/21897