mount.rst 1.7 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 /path/to/repo /tmp/mymountpoint
  10. $ ls /tmp/mymountpoint
  11. root-2016-02-14 root-2016-02-15
  12. $ borg umount /tmp/mymountpoint
  13. # Mounting a specific archive is possible as well.
  14. $ borg mount /path/to/repo::root-2016-02-15 /tmp/mymountpoint
  15. $ ls /tmp/mymountpoint
  16. bin boot etc home lib lib64 lost+found media mnt opt
  17. root sbin srv tmp usr var
  18. $ borg umount /tmp/mymountpoint
  19. # The experimental "versions view" merges all archives in the repository
  20. # and provides a versioned view on files.
  21. $ borg mount -o versions /path/to/repo /tmp/mymountpoint
  22. $ ls -l /tmp/mymountpoint/home/user/doc.txt/
  23. total 24
  24. -rw-rw-r-- 1 user group 12357 Aug 26 21:19 doc.cda00bc9.txt
  25. -rw-rw-r-- 1 user group 12204 Aug 26 21:04 doc.fa760f28.txt
  26. $ borg umount /tmp/mymountpoint
  27. borgfs
  28. ++++++
  29. ::
  30. $ echo '/mnt/backup /tmp/myrepo fuse.borgfs defaults,noauto 0 0' >> /etc/fstab
  31. $ echo '/mnt/backup::root-2016-02-15 /tmp/myarchive fuse.borgfs defaults,noauto 0 0' >> /etc/fstab
  32. $ mount /tmp/myrepo
  33. $ mount /tmp/myarchive
  34. $ ls /tmp/myrepo
  35. root-2016-02-01 root-2016-02-2015
  36. $ ls /tmp/myarchive
  37. bin boot etc home lib lib64 lost+found media mnt opt root sbin srv tmp usr var
  38. .. Note::
  39. ``borgfs`` will be automatically provided if you used a distribution
  40. package, ``pip`` or ``setup.py`` to install Borg. Users of the
  41. standalone binary will have to manually create a symlink (see
  42. :ref:`pyinstaller-binary`).