borg-mount.1 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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" "2025-12-23" "" "borg backup tool"
  31. .SH NAME
  32. borg-mount \- Mounts an 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 a repository or an archive as a FUSE filesystem.
  39. This can be useful for browsing or restoring individual files.
  40. .sp
  41. When restoring, take into account that the current FUSE implementation does
  42. not support special fs flags and ACLs.
  43. .sp
  44. When mounting a repository, the top directories will be named like the
  45. archives and the directory structure below these will be loaded on\-demand from
  46. the repository when entering these directories, so expect some delay.
  47. .sp
  48. Unless the \fB\-\-foreground\fP option is given, the command will run in the
  49. background until the filesystem is \fBunmounted\fP\&.
  50. .sp
  51. Performance tips:
  52. .INDENT 0.0
  53. .IP \(bu 2
  54. When doing a \(dqwhole repository\(dq mount:
  55. do not enter archive directories if not needed; this avoids on\-demand loading.
  56. .IP \(bu 2
  57. Only mount a specific archive, not the whole repository.
  58. .IP \(bu 2
  59. Only mount specific paths in a specific archive, not the complete archive.
  60. .UNINDENT
  61. .sp
  62. The command \fBborgfs\fP provides a wrapper for \fBborg mount\fP\&. This can also be
  63. used in fstab entries:
  64. \fB/path/to/repo /mnt/point fuse.borgfs defaults,noauto 0 0\fP
  65. .sp
  66. To allow a regular user to use fstab entries, add the \fBuser\fP option:
  67. \fB/path/to/repo /mnt/point fuse.borgfs defaults,noauto,user 0 0\fP
  68. .sp
  69. For FUSE configuration and mount options, see the mount.fuse(8) manual page.
  70. .sp
  71. Borg\(aqs default behavior is to use the archived user and group names of each
  72. file and map them to the system\(aqs respective user and group IDs.
  73. Alternatively, using \fBnumeric\-ids\fP will instead use the archived user and
  74. group IDs without any mapping.
  75. .sp
  76. The \fBuid\fP and \fBgid\fP mount options (implemented by Borg) can be used to
  77. override the user and group IDs of all files (i.e., \fBborg mount \-o
  78. uid=1000,gid=1000\fP).
  79. .sp
  80. The man page references \fBuser_id\fP and \fBgroup_id\fP mount options
  81. (implemented by FUSE) which specify the user and group ID of the mount owner
  82. (also known as the user who does the mounting). It is set automatically by libfuse (or
  83. the filesystem if libfuse is not used). However, you should not specify these
  84. manually. Unlike the \fBuid\fP and \fBgid\fP mount options, which affect all files,
  85. \fBuser_id\fP and \fBgroup_id\fP affect the user and group ID of the mounted
  86. (base) directory.
  87. .sp
  88. Additional mount options supported by Borg:
  89. .INDENT 0.0
  90. .IP \(bu 2
  91. \fBversions\fP: when used with a repository mount, this gives a merged, versioned
  92. view of the files in the archives. EXPERIMENTAL; layout may change in the future.
  93. .IP \(bu 2
  94. \fBallow_damaged_files\fP: by default, damaged files (where chunks are missing)
  95. will return EIO (I/O error) when trying to read the related parts of the file.
  96. Set this option to replace the missing parts with all\-zero bytes.
  97. .IP \(bu 2
  98. \fBignore_permissions\fP: for security reasons the \fBdefault_permissions\fP mount
  99. option is internally enforced by Borg. \fBignore_permissions\fP can be given to
  100. not enforce \fBdefault_permissions\fP\&.
  101. .UNINDENT
  102. .sp
  103. The BORG_MOUNT_DATA_CACHE_ENTRIES environment variable is intended for advanced users
  104. to tweak performance. It sets the number of cached data chunks; additional
  105. memory usage can be up to ~8 MiB times this number. The default is the number
  106. of CPU cores.
  107. .sp
  108. When the daemonized process receives a signal or crashes, it does not unmount.
  109. Unmounting in these cases could cause an active rsync or similar process
  110. to delete data unintentionally.
  111. .sp
  112. When running in the foreground, ^C/SIGINT cleanly unmounts the filesystem,
  113. but other signals or crashes do not.
  114. .sp
  115. Debugging:
  116. .sp
  117. \fBborg mount\fP usually daemonizes and the daemon process sends stdout/stderr
  118. to /dev/null. Thus, you need to either use \fB\-f / \-\-foreground\fP to make it stay
  119. in the foreground and not daemonize, or use \fBBORG_LOGGING_CONF\fP to reconfigure
  120. the logger to output to a file.
  121. .SH OPTIONS
  122. .sp
  123. See \fIborg\-common(1)\fP for common options of Borg commands.
  124. .SS arguments
  125. .INDENT 0.0
  126. .TP
  127. .B MOUNTPOINT
  128. where to mount the filesystem
  129. .TP
  130. .B PATH
  131. paths to extract; patterns are supported
  132. .UNINDENT
  133. .SS options
  134. .INDENT 0.0
  135. .TP
  136. .B \-f\fP,\fB \-\-foreground
  137. stay in foreground, do not daemonize
  138. .TP
  139. .B \-o
  140. extra mount options
  141. .TP
  142. .B \-\-numeric\-ids
  143. use numeric user and group identifiers from archives
  144. .UNINDENT
  145. .SS Archive filters
  146. .INDENT 0.0
  147. .TP
  148. .BI \-a \ PATTERN\fR,\fB \ \-\-match\-archives \ PATTERN
  149. only consider archives matching all patterns. See \(dqborg help match\-archives\(dq.
  150. .TP
  151. .BI \-\-sort\-by \ KEYS
  152. Comma\-separated list of sorting keys; valid keys are: timestamp, archive, name, id, tags, host, user; default is: timestamp
  153. .TP
  154. .BI \-\-first \ N
  155. consider the first N archives after other filters are applied
  156. .TP
  157. .BI \-\-last \ N
  158. consider the last N archives after other filters are applied
  159. .TP
  160. .BI \-\-oldest \ TIMESPAN
  161. consider archives between the oldest archive\(aqs timestamp and (oldest + TIMESPAN), e.g., 7d or 12m.
  162. .TP
  163. .BI \-\-newest \ TIMESPAN
  164. consider archives between the newest archive\(aqs timestamp and (newest \- TIMESPAN), e.g., 7d or 12m.
  165. .TP
  166. .BI \-\-older \ TIMESPAN
  167. consider archives older than (now \- TIMESPAN), e.g., 7d or 12m.
  168. .TP
  169. .BI \-\-newer \ TIMESPAN
  170. consider archives newer than (now \- TIMESPAN), e.g., 7d or 12m.
  171. .UNINDENT
  172. .SS Include/Exclude options
  173. .INDENT 0.0
  174. .TP
  175. .BI \-e \ PATTERN\fR,\fB \ \-\-exclude \ PATTERN
  176. exclude paths matching PATTERN
  177. .TP
  178. .BI \-\-exclude\-from \ EXCLUDEFILE
  179. read exclude patterns from EXCLUDEFILE, one per line
  180. .TP
  181. .BI \-\-pattern \ PATTERN
  182. include/exclude paths matching PATTERN
  183. .TP
  184. .BI \-\-patterns\-from \ PATTERNFILE
  185. read include/exclude patterns from PATTERNFILE, one per line
  186. .TP
  187. .BI \-\-strip\-components \ NUMBER
  188. Remove the specified number of leading path elements. Paths with fewer elements will be silently skipped.
  189. .UNINDENT
  190. .SH SEE ALSO
  191. .sp
  192. \fIborg\-common(1)\fP, \fIborg\-umount(1)\fP, \fIborg\-extract(1)\fP
  193. .SH AUTHOR
  194. The Borg Collective
  195. .\" Generated by docutils manpage writer.
  196. .