borg-import-tar(1)
β¨ NAME β¨
okay so this is borg-import-tar β the Borg command that creates a backup archive from a tarball π it's from the borg backup tool family, and the manpage lives at borg-import-tar(1), iykyk.
π SYNOPSIS π
borg [common options] import-tar [options] ARCHIVE TARFILE
π¦ DESCRIPTION π¦
bestie, this command creates a backup archive from a tarball. that's the whole vibe π
When you give '-' as a path, Borg will read a tar stream from standard input. no cap.
By default (--tar-filter=auto) Borg will detect whether the file is compressed based on its file extension and pipe the file through an appropriate filter πΈ:
.tar.gzor.tgz:gzip -d.tar.bz2or.tbz:bzip2 -d.tar.xzor.txz:xz -d.tar.zstdor.tar.zst:zstd -d.tar.lz4:lz4 -d
Alternatively, you can explicitly specify a --tar-filter program. It should read compressed data from stdin and output an uncompressed tar stream on stdout. that's the deal, periodt.
Most documentation of borg create applies here. Note that this command does not support excluding files. π«Ά
import-taris a lossy conversion: BSD flags, ACLs, extended attributes (xattrs),atimeandctimeare not exported. Timestamp resolution is limited to whole seconds, not the nanosecond resolution otherwise supported by Borg. so yeah, some detail is getting left on the table, no biggie but don't be surprised π
A --sparse option (as found in borg create) is not supported. π
import-tar reads POSIX.1-1988 (ustar), POSIX.1-2001 (pax), GNU tar, UNIX V7 tar and SunOS tar with extended attributes. she's versatile, she's iconic π
To import multiple tarballs into a single archive, they can be simply concatenated (e.g. using "cat") into a single file, and imported with an --ignore-zeros option to skip through the stop markers between them. slay π
π OPTIONS π
See borg-common(1) for common options of Borg commands.
πΈ arguments πΈ
ARCHIVEβ name of archive to create (must be also a valid directory name)TARFILEβ input tar file."-"to read from stdin instead.
π options π
--tar-filterβ filter program to pipe data through-s,--statsβ print statistics for the created archive--quick-statsβ print only archive statistics, skipping repository-wide statistics--listβ output verbose list of items (files, dirs, ...)--filterSTATUSCHARS β only display items with the given status characters--jsonβ output stats as JSON (implies--stats)--ignore-zerosβ ignore zero-filled blocks in the input tarball
π Archive options π
--commentCOMMENT β add a comment text to the archive--timestampTIMESTAMP β manually specify the archive creation date/time (UTC,yyyy-mm-ddThh:mm:ssformat). alternatively, give a reference file/directory.-cSECONDS,--checkpoint-intervalSECONDS β write checkpoint every SECONDS seconds (Default:1800)--chunker-paramsPARAMS β specify the chunker parameters (ALGO,CHUNK_MIN_EXP,CHUNK_MAX_EXP,HASH_MASK_BITS,HASH_WINDOW_SIZE). default:buzhash,19,23,21,4095-CCOMPRESSION,--compressionCOMPRESSION β select compression algorithm, see the output of the"borg help compression"command for details.
π SEE ALSO π
π Author π
The Borg Collective
okay that's the whole page, go forth and import those tarballs bestie π§ this was borg-import-tar(1) from the borg backup tool, dated 2026-07-18 β mwah, take care of her πβ¨
π¦ where this page comes from
- alpine 3.24: borgbackup-doc 1.4.5-r0 Β· BSD-3-Clause
- arch rolling: borg 1.4.5-1 Β· BSD
- ubuntu stonking: borgbackup 1.4.5-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms