From 711ceb01098ddafcba08c774be9d957c881c02b5 Mon Sep 17 00:00:00 2001 From: "Leo R. Lundgren" Date: Mon, 1 Nov 2021 20:59:20 +0100 Subject: [PATCH] mount: Improve usage information when mounted --- cmd/restic/cmd_mount.go | 3 ++- doc/050_restore.rst | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cmd/restic/cmd_mount.go b/cmd/restic/cmd_mount.go index 893e9d708..9cebb1b05 100644 --- a/cmd/restic/cmd_mount.go +++ b/cmd/restic/cmd_mount.go @@ -162,7 +162,8 @@ func runMount(opts MountOptions, gopts GlobalOptions, args []string) error { root := fuse.NewRoot(repo, cfg) Printf("Now serving the repository at %s\n", mountpoint) - Printf("When finished, quit with Ctrl-c or umount the mountpoint.\n") + Printf("Use another terminal or tool to browse the contents of this folder.\n") + Printf("When finished, quit with Ctrl-c here or umount the mountpoint.\n") debug.Log("serving mount at %v", mountpoint) err = fs.Serve(c, root) diff --git a/doc/050_restore.rst b/doc/050_restore.rst index 27568d203..279397e83 100644 --- a/doc/050_restore.rst +++ b/doc/050_restore.rst @@ -69,7 +69,8 @@ command to serve the repository with FUSE: $ restic -r /srv/restic-repo mount /mnt/restic enter password for repository: Now serving /srv/restic-repo at /mnt/restic - When finished, quit with Ctrl-c or umount the mountpoint. + Use another terminal or tool to browse the contents of this folder. + When finished, quit with Ctrl-c here or umount the mountpoint. Mounting repositories via FUSE is only possible on Linux, macOS and FreeBSD. On Linux, the ``fuse`` kernel module needs to be loaded and the ``fusermount``