-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add support for mounting and unmounting archives and repositories #4
Conversation
This commit adds the `mount` and `umount` commands and associated options. The implementation was very similar to how prune was implemented. I tested the changes by pointing borgtui to these changes: ``` $ cargo run -q -- -p real mount ssh://<my-repo>/./repo test-mount $ ls -l test-mount real-2023-04-23:16:25:20 real-2023-04-23:23:27:23 ... $ cargo run -q -- -p real umount test-mount $ ls -l test-mount $ ```
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for another PR :)
Unfortunately borg doesn't seem to handle umount errors gracefully nor provides message IDs for common mount failures (directory doesn't exist, etc)
Do you plan on adding more methods? If so, I'd wait with a new release. Unfortunaly, I currently don't have the time, to implement more myself, but I'm happy to review PRs :) |
Thanks for your patience with this PR!
I plan on adding archive contents and borg support but that might be a few weeks away. Depending on what |
Okay, than I'll issue the release right now, and another for the other methods |
This commit adds the
mount
andumount
commands and associated options. The implementation was very similar to how prune was implemented. I tested the changes by pointing borgtui to these changes: