瀏覽代碼

docs: add examples using :: positional argument, fixes #8255

Simply omitting the first positional argument (REPO) does
not work because borg then gets confused.
Thomas Waldmann 11 月之前
父節點
當前提交
b47ce334e8
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      docs/usage/mount.rst

+ 7 - 0
docs/usage/mount.rst

@@ -41,6 +41,13 @@ Examples
     $ borg mount /path/to/repo /tmp/mymountpoint only/that/path
     $ borg mount --exclude '...' /path/to/repo /tmp/mymountpoint
 
+    # When using BORG_REPO env var, use :: as positional argument:
+    export BORG_REPO=/path/to/repo
+    # Mount the whole repo:
+    borg mount :: /tmp/mymountpoint
+    # Mount some specific archive:
+    borg mount ::root-2016-02-15 /tmp/mymountpoint
+
 
 borgfs
 ++++++