From 2269ec82e1d92c72555b0f7da3ee955b333b9901 Mon Sep 17 00:00:00 2001 From: Martin Castillo Date: Sat, 24 Jan 2026 19:43:30 +0100 Subject: [PATCH] man: add note about append-only mode to restic-unlock.1 Since restic unlock _removes_ locks, a user might wonder whether this works in append-only mode, which prevents deletion of data. This change explicitly mentions in the man page that the deletion of locks is an allowed exception. --- cmd/restic/cmd_unlock.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/restic/cmd_unlock.go b/cmd/restic/cmd_unlock.go index c06fc8614..48f2e593d 100644 --- a/cmd/restic/cmd_unlock.go +++ b/cmd/restic/cmd_unlock.go @@ -19,6 +19,8 @@ func newUnlockCommand(globalOptions *global.Options) *cobra.Command { Long: ` The "unlock" command removes stale locks that have been created by other restic processes. +Removing locks works even with repositories served in append-only mode from restic's rest-server. + EXIT STATUS ===========