borg-export-tar.1 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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-EXPORT-TAR" 1 "2023-09-14" "" "borg backup tool"
  31. .SH NAME
  32. borg-export-tar \- Export archive contents as a tarball
  33. .SH SYNOPSIS
  34. .sp
  35. borg [common options] export\-tar [options] NAME FILE [PATH...]
  36. .SH DESCRIPTION
  37. .sp
  38. This command creates a tarball from an archive.
  39. .sp
  40. When giving \(aq\-\(aq as the output FILE, Borg will write a tar stream to standard output.
  41. .sp
  42. By default (\fB\-\-tar\-filter=auto\fP) Borg will detect whether the FILE should be compressed
  43. based on its file extension and pipe the tarball through an appropriate filter
  44. before writing it to FILE:
  45. .INDENT 0.0
  46. .IP \(bu 2
  47. \&.tar.gz or .tgz: gzip
  48. .IP \(bu 2
  49. \&.tar.bz2 or .tbz: bzip2
  50. .IP \(bu 2
  51. \&.tar.xz or .txz: xz
  52. .IP \(bu 2
  53. \&.tar.zstd or .tar.zst: zstd
  54. .IP \(bu 2
  55. \&.tar.lz4: lz4
  56. .UNINDENT
  57. .sp
  58. Alternatively, a \fB\-\-tar\-filter\fP program may be explicitly specified. It should
  59. read the uncompressed tar stream from stdin and write a compressed/filtered
  60. tar stream to stdout.
  61. .sp
  62. Depending on the \fB\-tar\-format\fP option, these formats are created:
  63. .TS
  64. center;
  65. |l|l|l|.
  66. _
  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. T}
  90. _
  91. T{
  92. GNU
  93. T} T{
  94. GNU tar format
  95. T} T{
  96. mtime s, no atime/ctime,
  97. no ACLs/xattrs/bsdflags
  98. T}
  99. _
  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. .