borg-export-tar.1 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. '\" t
  2. .\" Man page generated from reStructuredText.
  3. .
  4. .
  5. .nr rst2man-indent-level 0
  6. .
  7. .de1 rstReportMargin
  8. \\$1 \\n[an-margin]
  9. level \\n[rst2man-indent-level]
  10. level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
  11. -
  12. \\n[rst2man-indent0]
  13. \\n[rst2man-indent1]
  14. \\n[rst2man-indent2]
  15. ..
  16. .de1 INDENT
  17. .\" .rstReportMargin pre:
  18. . RS \\$1
  19. . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
  20. . nr rst2man-indent-level +1
  21. .\" .rstReportMargin post:
  22. ..
  23. .de UNINDENT
  24. . RE
  25. .\" indent \\n[an-margin]
  26. .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
  27. .nr rst2man-indent-level -1
  28. .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
  29. .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
  30. ..
  31. .TH "BORG-EXPORT-TAR" "1" "2025-05-22" "" "borg backup tool"
  32. .SH NAME
  33. borg-export-tar \- Export archive contents as a tarball
  34. .SH SYNOPSIS
  35. .sp
  36. borg [common options] export\-tar [options] NAME FILE [PATH...]
  37. .SH DESCRIPTION
  38. .sp
  39. This command creates a tarball from an archive.
  40. .sp
  41. When giving \(aq\-\(aq as the output FILE, Borg will write a tar stream to standard output.
  42. .sp
  43. By default (\fB\-\-tar\-filter=auto\fP) Borg will detect whether the FILE should be compressed
  44. based on its file extension and pipe the tarball through an appropriate filter
  45. before writing it to FILE:
  46. .INDENT 0.0
  47. .IP \(bu 2
  48. \&.tar.gz or .tgz: gzip
  49. .IP \(bu 2
  50. \&.tar.bz2 or .tbz: bzip2
  51. .IP \(bu 2
  52. \&.tar.xz or .txz: xz
  53. .IP \(bu 2
  54. \&.tar.zstd or .tar.zst: zstd
  55. .IP \(bu 2
  56. \&.tar.lz4: lz4
  57. .UNINDENT
  58. .sp
  59. Alternatively, a \fB\-\-tar\-filter\fP program may be explicitly specified. It should
  60. read the uncompressed tar stream from stdin and write a compressed/filtered
  61. tar stream to stdout.
  62. .sp
  63. Depending on the \fB\-tar\-format\fP option, these formats are created:
  64. .TS
  65. box center;
  66. l|l|l.
  67. T{
  68. \-\-tar\-format
  69. T} T{
  70. Specification
  71. T} T{
  72. Metadata
  73. T}
  74. _
  75. T{
  76. BORG
  77. T} T{
  78. BORG specific, like PAX
  79. T} T{
  80. all as supported by borg
  81. T}
  82. _
  83. T{
  84. PAX
  85. T} T{
  86. POSIX.1\-2001 (pax) format
  87. T} T{
  88. GNU + atime/ctime/mtime ns
  89. + xattrs
  90. T}
  91. _
  92. T{
  93. GNU
  94. T} T{
  95. GNU tar format
  96. T} T{
  97. mtime s, no atime/ctime,
  98. no ACLs/xattrs/bsdflags
  99. T}
  100. .TE
  101. .sp
  102. A \fB\-\-sparse\fP option (as found in borg extract) is not supported.
  103. .sp
  104. By default the entire archive is extracted but a subset of files and directories
  105. can be selected by passing a list of \fBPATHs\fP as arguments.
  106. The file selection can further be restricted by using the \fB\-\-exclude\fP option.
  107. .sp
  108. For more help on include/exclude patterns, see the \fIborg_patterns\fP command output.
  109. .sp
  110. \fB\-\-progress\fP can be slower than no progress display, since it makes one additional
  111. pass over the archive metadata.
  112. .SH OPTIONS
  113. .sp
  114. See \fIborg\-common(1)\fP for common options of Borg commands.
  115. .SS arguments
  116. .INDENT 0.0
  117. .TP
  118. .B NAME
  119. specify the archive name
  120. .TP
  121. .B FILE
  122. output tar file. \(dq\-\(dq to write to stdout instead.
  123. .TP
  124. .B PATH
  125. paths to extract; patterns are supported
  126. .UNINDENT
  127. .SS options
  128. .INDENT 0.0
  129. .TP
  130. .B \-\-tar\-filter
  131. filter program to pipe data through
  132. .TP
  133. .B \-\-list
  134. output verbose list of items (files, dirs, ...)
  135. .TP
  136. .BI \-\-tar\-format \ FMT
  137. select tar format: BORG, PAX or GNU
  138. .UNINDENT
  139. .SS Include/Exclude options
  140. .INDENT 0.0
  141. .TP
  142. .BI \-e \ PATTERN\fR,\fB \ \-\-exclude \ PATTERN
  143. exclude paths matching PATTERN
  144. .TP
  145. .BI \-\-exclude\-from \ EXCLUDEFILE
  146. read exclude patterns from EXCLUDEFILE, one per line
  147. .TP
  148. .BI \-\-pattern \ PATTERN
  149. include/exclude paths matching PATTERN
  150. .TP
  151. .BI \-\-patterns\-from \ PATTERNFILE
  152. read include/exclude patterns from PATTERNFILE, one per line
  153. .TP
  154. .BI \-\-strip\-components \ NUMBER
  155. Remove the specified number of leading path elements. Paths with fewer elements will be silently skipped.
  156. .UNINDENT
  157. .SH SEE ALSO
  158. .sp
  159. \fIborg\-common(1)\fP
  160. .SH AUTHOR
  161. The Borg Collective
  162. .\" Generated by docutils manpage writer.
  163. .