mount.rst.inc 2.4 KB

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