mount.rst 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. .. include:: mount.rst.inc
  2. .. include:: umount.rst.inc
  3. Examples
  4. ~~~~~~~~
  5. ::
  6. # Mounting the repository shows all archives.
  7. # Archives are loaded lazily, expect some delay when navigating to an archive
  8. # for the first time.
  9. $ borg mount /tmp/mymountpoint
  10. $ ls /tmp/mymountpoint
  11. root-2016-02-14 root-2016-02-15
  12. $ borg umount /tmp/mymountpoint
  13. # The "versions view" merges all archives in the repository
  14. # and provides a versioned view on files.
  15. $ borg mount -o versions /tmp/mymountpoint
  16. $ ls -l /tmp/mymountpoint/home/user/doc.txt/
  17. total 24
  18. -rw-rw-r-- 1 user group 12357 Aug 26 21:19 doc.cda00bc9.txt
  19. -rw-rw-r-- 1 user group 12204 Aug 26 21:04 doc.fa760f28.txt
  20. $ borg umount /tmp/mymountpoint
  21. # Archive filters are supported.
  22. # These are especially handy for the "versions view",
  23. # which does not support lazy processing of archives.
  24. $ borg mount -o versions --match-archives 'sh:*-my-home' --last 10 /tmp/mymountpoint
  25. # Exclusion options are supported.
  26. # These can speed up mounting and lower memory needs significantly.
  27. $ borg mount /path/to/repo /tmp/mymountpoint only/that/path
  28. $ borg mount --exclude '...' /tmp/mymountpoint
  29. borgfs
  30. ++++++
  31. ::
  32. $ echo '/mnt/backup /tmp/myrepo fuse.borgfs defaults,noauto 0 0' >> /etc/fstab
  33. $ mount /tmp/myrepo
  34. $ ls /tmp/myrepo
  35. root-2016-02-01 root-2016-02-2015
  36. .. Note::
  37. ``borgfs`` will be automatically provided if you used a distribution
  38. package, ``pip`` or ``setup.py`` to install Borg. Users of the
  39. standalone binary will have to create a symlink manually (see
  40. :ref:`pyinstaller-binary`).