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
fuse mount: mounting without user interaction #1331
Comments
Yes, good idea, at least for |
Hi,
Just to confirm, this is expected behavior, i.e. it is done mounting at this point and it is save to stop the process with Ctrl+C? |
Yes, that's the expected behavior (at least for now). |
Okay, thanks for confirming. All good. As you can guess, I agree that an |
I'm back at using restic and remembered this (and saw that it was still open). I think the easiest way to avoid confusion would be to add an example to the documentation showing how to safely mount and unmount in one shell: Run restic mount in the background (with
Do some work with the mounted backup:
Send SIGINT to restic to unmount:
That's the way I do it at least. |
FWIW, I've been automating |
Currently mounting a restic repository is started via 'restic mount' and after mounting restic waits for the user to hit control-c.
You can however unmount it on a different terminal with 'fusermount -u'. In this case restic stops with 'unable to umount (maybe already umounted?): exit status 1: fusermount: entry for /mnt/restic not found in /etc/mtab'
This is in contrast to other mounting mechanisms where you have one program for mounting and another for unmounting.
Wouldn't it be better to have 'restic mount' and 'restic unmount'?
The text was updated successfully, but these errors were encountered: