فهرست منبع

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 ماه پیش
والد
کامیت
7b8acc925f
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
 ++++++