瀏覽代碼

docs: mount: document on-demand loading, perf tips, fixes #7173

Thomas Waldmann 8 月之前
父節點
當前提交
3d3fc24af3
共有 1 個文件被更改,包括 16 次插入4 次删除
  1. 16 4
      src/borg/archiver/mount_cmds.py

+ 16 - 4
src/borg/archiver/mount_cmds.py

@@ -54,14 +54,26 @@ class MountMixIn:
 
         mount_epilog = process_epilog(
             """
-        This command mounts an archive as a FUSE filesystem. This can be useful
-        for browsing an archive or restoring individual files. When restoring,
-        take into account that the current FUSE implementation does not support
-        special fs flags and ACLs.
+        This command mounts a repository or an archive as a FUSE filesystem.
+        This can be useful for browsing or restoring individual files.
+
+        When restoring, take into account that the current FUSE implementation does
+        not support special fs flags and ACLs.
+
+        When mounting a repository, the top directories will be named like the
+        archives and the directory structure below these will be loaded on-demand from
+        the repository when entering these directories, so expect some delay.
 
         Unless the ``--foreground`` option is given the command will run in the
         background until the filesystem is ``umounted``.
 
+        Performance tips:
+
+        - when doing a "whole repository" mount:
+          do not enter archive dirs if not needed, this avoids on-demand loading.
+        - only mount a specific archive, not the whole repository.
+        - only mount specific paths in a specific archive, not the complete archive.
+
         The command ``borgfs`` provides a wrapper for ``borg mount``. This can also be
         used in fstab entries:
         ``/path/to/repo /mnt/point fuse.borgfs defaults,noauto 0 0``