Skip to content

Commit

Permalink
docs: add examples using :: positional argument, fixes #8255
Browse files Browse the repository at this point in the history
Simply omitting the first positional argument (REPO) does
not work because borg then gets confused.
  • Loading branch information
ThomasWaldmann committed Jun 30, 2024
1 parent 68ca4a8 commit 7b8acc9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/usage/mount.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
++++++
Expand Down

0 comments on commit 7b8acc9

Please sign in to comment.