npbackup icon indicating copy to clipboard operation
npbackup copied to clipboard

NPBackup viewer read-only repository

Open jmigual opened this issue 8 months ago • 2 comments

I have an amazon S3 repository and I want to give read-only access to some users. However, I am encountering the following error:

Save(<lock/31f52c3db1>) failed: client.PutObject: Access Denied.
unable to create lock in backend: client.PutObject: Access Denied.

This is because restic is trying to create a lock to open the repository.

It would be useful if restic could be run with the --no-lock option for the viewer. Since it doesn't modify the repository, having the --no-lock option would be useful for read-only access keys.

jmigual avatar Apr 14 '25 20:04 jmigual

Excellent idea. Will be part of next release.

deajan avatar Apr 15 '25 22:04 deajan

Implemented in current git master. I'll leave this open until release that should happen somewhere by beginning of next week.

deajan avatar Apr 16 '25 19:04 deajan

New version released (with big delay). Closing this. Thank you for reporting.

deajan avatar Jun 10 '25 15:06 deajan