backend/sftp: fix removing files on windows sftp

This commit is contained in:
Michael Eischer
2026-06-19 23:23:01 +02:00
parent 6c67a095dc
commit 203e595ccb
2 changed files with 43 additions and 2 deletions
+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