borg-mount.1 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .
  4. .nr rst2man-indent-level 0
  5. .
  6. .de1 rstReportMargin
  7. \\$1 \\n[an-margin]
  8. level \\n[rst2man-indent-level]
  9. level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
  10. -
  11. \\n[rst2man-indent0]
  12. \\n[rst2man-indent1]
  13. \\n[rst2man-indent2]
  14. ..
  15. .de1 INDENT
  16. .\" .rstReportMargin pre:
  17. . RS \\$1
  18. . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
  19. . nr rst2man-indent-level +1
  20. .\" .rstReportMargin post:
  21. ..
  22. .de UNINDENT
  23. . RE
  24. .\" indent \\n[an-margin]
  25. .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
  26. .nr rst2man-indent-level -1
  27. .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
  28. .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
  29. ..
  30. .TH "BORG-MOUNT" 1 "2022-06-26" "" "borg backup tool"
  31. .SH NAME
  32. borg-mount \- Mount archive or an entire repository as a FUSE filesystem
  33. .SH SYNOPSIS
  34. .sp
  35. borg [common options] mount [options] MOUNTPOINT [PATH...]
  36. .SH DESCRIPTION
  37. .sp
  38. This command mounts an archive as a FUSE filesystem. This can be useful for
  39. browsing an archive or restoring individual files. Unless the \fB\-\-foreground\fP
  40. option is given the command will run in the background until the filesystem
  41. is \fBumounted\fP\&.
  42. .sp
  43. The command \fBborgfs\fP provides a wrapper for \fBborg mount\fP\&. This can also be
  44. used in fstab entries:
  45. \fB/path/to/repo /mnt/point fuse.borgfs defaults,noauto 0 0\fP
  46. .sp
  47. To allow a regular user to use fstab entries, add the \fBuser\fP option:
  48. \fB/path/to/repo /mnt/point fuse.borgfs defaults,noauto,user 0 0\fP
  49. .sp
  50. For FUSE configuration and mount options, see the mount.fuse(8) manual page.
  51. .sp
  52. Borg\(aqs default behavior is to use the archived user and group names of each
  53. file and map them to the system\(aqs respective user and group ids.
  54. Alternatively, using \fBnumeric\-ids\fP will instead use the archived user and
  55. group ids without any mapping.
  56. .sp
  57. The \fBuid\fP and \fBgid\fP mount options (implemented by Borg) can be used to
  58. override the user and group ids of all files (i.e., \fBborg mount \-o
  59. uid=1000,gid=1000\fP).
  60. .sp
  61. The man page references \fBuser_id\fP and \fBgroup_id\fP mount options
  62. (implemented by fuse) which specify the user and group id of the mount owner
  63. (aka, the user who does the mounting). It is set automatically by libfuse (or
  64. the filesystem if libfuse is not used). However, you should not specify these
  65. manually. Unlike the \fBuid\fP and \fBgid\fP mount options which affect all files,
  66. \fBuser_id\fP and \fBgroup_id\fP affect the user and group id of the mounted
  67. (base) directory.
  68. .sp
  69. Additional mount options supported by borg:
  70. .INDENT 0.0
  71. .IP \(bu 2
  72. versions: when used with a repository mount, this gives a merged, versioned
  73. view of the files in the archives. EXPERIMENTAL, layout may change in future.
  74. .IP \(bu 2
  75. allow_damaged_files: by default damaged files (where missing chunks were
  76. replaced with runs of zeros by borg check \fB\-\-repair\fP) are not readable and
  77. return EIO (I/O error). Set this option to read such files.
  78. .IP \(bu 2
  79. ignore_permissions: for security reasons the "default_permissions" mount
  80. option is internally enforced by borg. "ignore_permissions" can be given to
  81. not enforce "default_permissions".
  82. .UNINDENT
  83. .sp
  84. The BORG_MOUNT_DATA_CACHE_ENTRIES environment variable is meant for advanced users
  85. to tweak the performance. It sets the number of cached data chunks; additional
  86. memory usage can be up to ~8 MiB times this number. The default is the number
  87. of CPU cores.
  88. .sp
  89. When the daemonized process receives a signal or crashes, it does not unmount.
  90. Unmounting in these cases could cause an active rsync or similar process
  91. to unintentionally delete data.
  92. .sp
  93. When running in the foreground ^C/SIGINT unmounts cleanly, but other
  94. signals or crashes do not.
  95. .SH OPTIONS
  96. .sp
  97. See \fIborg\-common(1)\fP for common options of Borg commands.
  98. .SS arguments
  99. .INDENT 0.0
  100. .TP
  101. .B MOUNTPOINT
  102. where to mount filesystem
  103. .TP
  104. .B PATH
  105. paths to extract; patterns are supported
  106. .UNINDENT
  107. .SS optional arguments
  108. .INDENT 0.0
  109. .TP
  110. .B \-\-consider\-checkpoints
  111. Show checkpoint archives in the repository contents list (default: hidden).
  112. .TP
  113. .B \-f\fP,\fB \-\-foreground
  114. stay in foreground, do not daemonize
  115. .TP
  116. .B \-o
  117. Extra mount options
  118. .TP
  119. .B \-\-numeric\-owner
  120. deprecated, use \fB\-\-numeric\-ids\fP instead
  121. .TP
  122. .B \-\-numeric\-ids
  123. use numeric user and group identifiers from archive(s)
  124. .UNINDENT
  125. .SS Archive filters
  126. .INDENT 0.0
  127. .TP
  128. .BI \-P \ PREFIX\fR,\fB \ \-\-prefix \ PREFIX
  129. only consider archive names starting with this prefix.
  130. .TP
  131. .BI \-a \ GLOB\fR,\fB \ \-\-glob\-archives \ GLOB
  132. only consider archive names matching the glob. sh: rules apply, see "borg help patterns". \fB\-\-prefix\fP and \fB\-\-glob\-archives\fP are mutually exclusive.
  133. .TP
  134. .BI \-\-sort\-by \ KEYS
  135. Comma\-separated list of sorting keys; valid keys are: timestamp, name, id; default is: timestamp
  136. .TP
  137. .BI \-\-first \ N
  138. consider first N archives after other filters were applied
  139. .TP
  140. .BI \-\-last \ N
  141. consider last N archives after other filters were applied
  142. .UNINDENT
  143. .SS Exclusion options
  144. .INDENT 0.0
  145. .TP
  146. .BI \-e \ PATTERN\fR,\fB \ \-\-exclude \ PATTERN
  147. exclude paths matching PATTERN
  148. .TP
  149. .BI \-\-exclude\-from \ EXCLUDEFILE
  150. read exclude patterns from EXCLUDEFILE, one per line
  151. .TP
  152. .BI \-\-pattern \ PATTERN
  153. include/exclude paths matching PATTERN
  154. .TP
  155. .BI \-\-patterns\-from \ PATTERNFILE
  156. read include/exclude patterns from PATTERNFILE, one per line
  157. .TP
  158. .BI \-\-strip\-components \ NUMBER
  159. Remove the specified number of leading path elements. Paths with fewer elements will be silently skipped.
  160. .UNINDENT
  161. .SH SEE ALSO
  162. .sp
  163. \fIborg\-common(1)\fP, \fIborg\-umount(1)\fP, \fIborg\-extract(1)\fP
  164. .SH AUTHOR
  165. The Borg Collective
  166. .\" Generated by docutils manpage writer.
  167. .