From 0031b73b2ba157665191fda31be0dc23c60fc51f Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Fri, 10 Oct 2025 14:52:10 +0200 Subject: [PATCH] docs: how to debug borg mount, fixes #5461 --- src/borg/archiver/mount_cmds.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/borg/archiver/mount_cmds.py b/src/borg/archiver/mount_cmds.py index 303fde767..d8e3eee73 100644 --- a/src/borg/archiver/mount_cmds.py +++ b/src/borg/archiver/mount_cmds.py @@ -122,6 +122,13 @@ class MountMixIn: When running in the foreground, ^C/SIGINT cleanly unmounts the filesystem, but other signals or crashes do not. + + Debugging: + + ``borg mount`` usually daemonizes and the daemon process sends stdout/stderr + to /dev/null. Thus, you need to either use ``-f / --foreground`` to make it stay + in the foreground and not daemonize, or use ``BORG_LOGGING_CONF`` to reconfigure + the logger to output to a file. """ ) subparser = subparsers.add_parser(