mount.rst.inc 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. .. IMPORTANT: this file is auto-generated from borg's built-in help, do not edit!
  2. .. _borg_mount:
  3. borg mount
  4. ----------
  5. ::
  6. borg mount <options> REPOSITORY_OR_ARCHIVE MOUNTPOINT
  7. positional arguments
  8. REPOSITORY_OR_ARCHIVE
  9. repository/archive to mount
  10. MOUNTPOINT
  11. where to mount filesystem
  12. optional arguments
  13. ``-f``, ``--foreground``
  14. | stay in foreground, do not daemonize
  15. ``-o``
  16. | Extra mount options
  17. `Common options`_
  18. |
  19. filters
  20. ``-P``, ``--prefix``
  21. | only consider archive names starting with this prefix
  22. ``--sort-by``
  23. | Comma-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp
  24. ``--first N``
  25. | consider first N archives after other filters were applied
  26. ``--last N``
  27. | consider last N archives after other filters were applied
  28. Description
  29. ~~~~~~~~~~~
  30. This command mounts an archive as a FUSE filesystem. This can be useful for
  31. browsing an archive or restoring individual files. Unless the ``--foreground``
  32. option is given the command will run in the background until the filesystem
  33. is ``umounted``.
  34. The command ``borgfs`` provides a wrapper for ``borg mount``. This can also be
  35. used in fstab entries:
  36. ``/path/to/repo /mnt/point fuse.borgfs defaults,noauto 0 0``
  37. To allow a regular user to use fstab entries, add the ``user`` option:
  38. ``/path/to/repo /mnt/point fuse.borgfs defaults,noauto,user 0 0``
  39. For mount options, see the fuse(8) manual page. Additional mount options
  40. supported by borg:
  41. - versions: when used with a repository mount, this gives a merged, versioned
  42. view of the files in the archives. EXPERIMENTAL, layout may change in future.
  43. - allow_damaged_files: by default damaged files (where missing chunks were
  44. replaced with runs of zeros by borg check --repair) are not readable and
  45. return EIO (I/O error). Set this option to read such files.
  46. The BORG_MOUNT_DATA_CACHE_ENTRIES environment variable is meant for advanced users
  47. to tweak the performance. It sets the number of cached data chunks; additional
  48. memory usage can be up to ~8 MiB times this number. The default is the number
  49. of CPU cores.
  50. When the daemonized process receives a signal or crashes, it does not unmount.
  51. Unmounting in these cases could cause an active rsync or similar process
  52. to unintentionally delete data.
  53. When running in the foreground ^C/SIGINT unmounts cleanly, but other
  54. signals or crashes do not.