borg-import-tar.1 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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-IMPORT-TAR" "1" "2025-04-18" "" "borg backup tool"
  31. .SH NAME
  32. borg-import-tar \- Create a backup archive from a tarball
  33. .SH SYNOPSIS
  34. .sp
  35. borg [common options] import\-tar [options] ARCHIVE TARFILE
  36. .SH DESCRIPTION
  37. .sp
  38. This command creates a backup archive from a tarball.
  39. .sp
  40. When giving \(aq\-\(aq as path, Borg will read a tar stream from standard input.
  41. .sp
  42. By default (\-\-tar\-filter=auto) Borg will detect whether the file is compressed
  43. based on its file extension and pipe the file through an appropriate filter:
  44. .INDENT 0.0
  45. .IP \(bu 2
  46. \&.tar.gz or .tgz: gzip \-d
  47. .IP \(bu 2
  48. \&.tar.bz2 or .tbz: bzip2 \-d
  49. .IP \(bu 2
  50. \&.tar.xz or .txz: xz \-d
  51. .IP \(bu 2
  52. \&.tar.zstd or .tar.zst: zstd \-d
  53. .IP \(bu 2
  54. \&.tar.lz4: lz4 \-d
  55. .UNINDENT
  56. .sp
  57. Alternatively, a \-\-tar\-filter program may be explicitly specified. It should
  58. read compressed data from stdin and output an uncompressed tar stream on
  59. stdout.
  60. .sp
  61. Most documentation of borg create applies. Note that this command does not
  62. support excluding files.
  63. .sp
  64. import\-tar is a lossy conversion:
  65. BSD flags, ACLs, extended attributes (xattrs), atime and ctime are not exported.
  66. Timestamp resolution is limited to whole seconds, not the nanosecond resolution
  67. otherwise supported by Borg.
  68. .sp
  69. A \fB\-\-sparse\fP option (as found in borg create) is not supported.
  70. .sp
  71. import\-tar reads POSIX.1\-1988 (ustar), POSIX.1\-2001 (pax), GNU tar, UNIX V7 tar
  72. and SunOS tar with extended attributes.
  73. .sp
  74. To import multiple tarballs into a single archive, they can be simply
  75. concatenated (e.g. using \(dqcat\(dq) into a single file, and imported with an
  76. \fB\-\-ignore\-zeros\fP option to skip through the stop markers between them.
  77. .SH OPTIONS
  78. .sp
  79. See \fIborg\-common(1)\fP for common options of Borg commands.
  80. .SS arguments
  81. .INDENT 0.0
  82. .TP
  83. .B ARCHIVE
  84. name of archive to create (must be also a valid directory name)
  85. .TP
  86. .B TARFILE
  87. input tar file. \(dq\-\(dq to read from stdin instead.
  88. .UNINDENT
  89. .SS options
  90. .INDENT 0.0
  91. .TP
  92. .B \-\-tar\-filter
  93. filter program to pipe data through
  94. .TP
  95. .B \-s\fP,\fB \-\-stats
  96. print statistics for the created archive
  97. .TP
  98. .B \-\-list
  99. output verbose list of items (files, dirs, ...)
  100. .TP
  101. .BI \-\-filter \ STATUSCHARS
  102. only display items with the given status characters
  103. .TP
  104. .B \-\-json
  105. output stats as JSON (implies \-\-stats)
  106. .TP
  107. .B \-\-ignore\-zeros
  108. ignore zero\-filled blocks in the input tarball
  109. .UNINDENT
  110. .SS Archive options
  111. .INDENT 0.0
  112. .TP
  113. .BI \-\-comment \ COMMENT
  114. add a comment text to the archive
  115. .TP
  116. .BI \-\-timestamp \ TIMESTAMP
  117. manually specify the archive creation date/time (UTC, yyyy\-mm\-ddThh:mm:ss format). alternatively, give a reference file/directory.
  118. .TP
  119. .BI \-c \ SECONDS\fR,\fB \ \-\-checkpoint\-interval \ SECONDS
  120. write checkpoint every SECONDS seconds (Default: 1800)
  121. .TP
  122. .BI \-\-chunker\-params \ PARAMS
  123. specify the chunker parameters (ALGO, CHUNK_MIN_EXP, CHUNK_MAX_EXP, HASH_MASK_BITS, HASH_WINDOW_SIZE). default: buzhash,19,23,21,4095
  124. .TP
  125. .BI \-C \ COMPRESSION\fR,\fB \ \-\-compression \ COMPRESSION
  126. select compression algorithm, see the output of the \(dqborg help compression\(dq command for details.
  127. .UNINDENT
  128. .SH SEE ALSO
  129. .sp
  130. \fIborg\-common(1)\fP
  131. .SH AUTHOR
  132. The Borg Collective
  133. .\" Generated by docutils manpage writer.
  134. .