-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mount repository on read-only filesystems with --no-lock fails #1597
Comments
Its a bug? |
Hey, thanks for the report. Only very few of restic's commands work without locking, and What's your use case? |
"Mount repo read-only without trying to access/write/read a lock file inside the read-only repo folder" |
I was interested in the background: Why do you want to do that? Is it because you have a restic repo on a read-only medium like a DVD? Or is it for safety reasons? Or a read-only (lvm?) snapshot of some kind? I think this is not a bug (at least for now, maybe it's a feature request?) but I don't have the full picture yet, so I'm trying to understand what your motivation is :) |
Hello, the usecase is to mount a repository inside of a readonly path. It is essentially to be able to mount a repository readonly or be able to provide a writeable locking file path outside of the repo (for example in /tmp) if real readonly can not be implemented in restic. |
Thanks for the feedback. I understand your use case a bit better now. You can work around this limitation in restic already, if you're able to mount new volumes in the container: Either mount a new tmpfs at the |
I backup my files on a Windows box to an NTFS hard drive. Today I tried to restore on my mac. NTFS is read-only on the Mac. I was unable to do so. This command:
implies that it will work since it says no-lock is a global option. It appears it is not and now I cannot restore my backup. Since a restore shouldn't over write the source, I believe this should be a valid option for mount. Any command that writes the repository could fail when given a read-only repository. |
Output of
restic version
How did you run restic exactly?
What backend/server/service did you use to store the repository?
local/restic
Expected behavior
Mount repo read-only without trying to access/write/read a lock file inside the read-only repo folder
Actual behavior
Fails while accessing/writing to lock folder inside the read-only repo folder
Steps to reproduce the behavior
See above
Do you have any idea what may have caused this?
Bad implementation of --no-lock arg
Do you have an idea how to solve the issue?
Don't try to access lock folder inside read-only repository on read-only filesystem when --no-lock is provided
Did restic help you or made you happy in any way?
Not fully yet
The text was updated successfully, but these errors were encountered: