GNUTAR(1)

πŸ“¦ version 1.6, in nixos 26.05, nixpkgs unstable

πŸ’– GNUTAR(1) πŸ’–

Hey bestie! Welcome to GNUTAR(1), straight out of Schily´s USER COMMANDS. This is the gnutar page, and we're gonna get through every single flag together. Slay. 🫢

πŸ’– NAME πŸ’–

gnutar β€” emulates the GNU version of the tar archiver.

✨ SYNOPSIS ✨

gnutar  command [ options ] file1 ... filen

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so this manual page documents the GNU version of tar, the archiving program designed to store files in and extract files from an archive file known as a tarfile. A tarfile can be made on a tape drive β€” iconic β€” but it's also super common to write a tarfile to a normal file.

The first argument to gnutar must be one of the options: Acdrtux, followed by any optional functions. The final arguments to gnutar are the names of the files or directories that should be archived. Using a directory name always implies that the subdirectories below it should be included in the archive. No cap. πŸ’…

πŸ’… COMMAND πŸ’…

Bestie, one of these commands must be used:

  • -A, --catenate, --concatenate β€” append tar files to an archive
  • -c, --create β€” create a new archive
  • -d, --diff, --compare β€” find differences between archive and file system
  • --delete β€” delete from the archive (not for use on mag tapes!)
  • -r, --append β€” append files to the end of an archive
  • -t, --list β€” list the contents of an archive
  • -u, --update β€” only append files that are newer than copy in archive
  • -x, --extract, --get β€” extract files from an archive

πŸ”₯ OPTIONS πŸ”₯

Here's the full option wall, bestie β€” every flag, every default, every little detail. ✨

  • --atime-preserve β€” don't change access times on dumped files
  • -b, --block-size N β€” block size of Nx512 bytes (default N=20)
  • -B, --read-full-blocks β€” reblock as we read (for reading 4.2BSD pipes)
  • -C, --directory DIR β€” change to directory DIR
  • --checkpoint β€” print directory names while reading the archive
  • -f, --file [HOSTNAME:]F β€” use archive file or device F (default /dev/rmt0)
  • --force-local β€” archive file is local even if has a colon
  • -F, --info-script F, --new-volume-script F β€” run script at end of each tape (implies -M)
  • -G, --incremental β€” create/list/extract old GNU-format incremental backup. Heads up: this feature did never work in the real GNU tar implementation, so we cannot support it.
  • -g, --listed-incremental F β€” create/list/extract new GNU-format incremental backup. Same warning, bestie: this feature did never work in the real GNU tar implementation, so we cannot support it.
  • -h, --dereference β€” don't dump symlinks; dump the files they point to
  • -i, --ignore-zeros β€” ignore blocks of zeros in archive (normally mean EOF)
  • -j, --bzip β€” filter the archive through bzip2.
  • --ignore-failed-read β€” don't exit with non-zero status on unreadable files
  • -k, --keep-old-files β€” keep existing files; don't overwrite them from archive
  • -K, --starting-file F β€” begin at file F in the archive
  • -l, --one-file-system β€” stay in local file system when creating an archive
  • -L, --tape-length N β€” change tapes after writing N*1024 bytes
  • -m, --modification-time β€” don't extract file modified time
  • -M, --multi-volume β€” create/list/extract multi-volume archive
  • -N, --after-date DATE, --newer DATE β€” only store files newer than DATE
  • -o, --old-archive, --portability β€” write a V7 format archive, rather than ANSI format
  • -O, --to-stdout β€” extract files to standard output
  • -p, --same-permissions, --preserve-permissions β€” extract all protection information
  • -P, --absolute-paths β€” don't strip leading /s from file names
  • --preserve β€” like -p -s.
  • -R, --record-number β€” show record number within archive with each message
  • --remove-files β€” remove files after adding them to the archive
  • -s, --same-order, --preserve-order β€” list of names to extract is sorted to match archive
  • --same-owner β€” create extracted files with the same ownership
  • -S, --sparse β€” handle sparse files efficiently
  • -T, --files-from= F β€” get names to extract or create from file F
  • --null β€” -T reads null-terminated names, disable -C
  • --totals β€” print total bytes written with --create
  • -v, --verbose β€” verbosely list files processed
  • -V, --label NAME β€” create archive with volume name NAME
  • --version β€” print gnutar program version number
  • -w, --interactive, --confirmation β€” ask for confirmation for every action
  • -W, --verify β€” attempt to verify the archive after writing it
  • --exclude FILE β€” exclude file FILE
  • -X, --exclude-from FILE β€” exclude files listed in FILE
  • -Z, --compress, --uncompress β€” filter the archive through compress
  • -z, --gzip, --ungzip β€” filter the archive through gzip
  • --use-compress-program PROG β€” filter the archive through PROG (which must accept -d)

🌈 EXTENDED OPTIONS 🌈

The extended options are options taken from star. Yes, bestie, we're going beyond the basics. πŸ¦‹

  • --help β€” prints a summary of the most important options for gnutar(1) and exits.
  • --xhelp β€” prints a summary of the less important options for gnutar(1) and exits.
  • --version β€” prints the gnutar version number string and exists.
  • --debug β€” print additional debug messages
  • xdebug=# β€” this one is listed with no extra description in the original, bestie.
  • xd=# β€” set extended debug level
  • -/ β€” don't strip leading /s from file names
  • -.. β€” don't skip filenames that contain .. in non-interactive extract
  • --secure-links β€” don't extract links that start with / or contain ..
  • --acl β€” handle access control lists
  • --xfflags β€” handle extended file flags
  • bs=# β€” set (output) block size to #
  • fs=# β€” set fifo size to #
  • --no-fsync β€” do not call fsync() for each extracted file (may be dangerous).
  • --do-fsync β€” call fsync() for each extracted file.
  • --time β€” print timing info
  • --no-statistics β€” do not print statistics
  • --fifostats β€” print fifo statistics
  • --no-fifo β€” don't use a fifo to optimize data flow from/to tape
  • --numeric β€” don't use user/group name from tape
  • --zstd β€” run the input or output through a zstd pipe.

The options above are not defined by GNU tar.

For a complete documentation of the star based optione check star(1).

πŸŽ€ EXAMPLES πŸŽ€

No examples are listed in this section on the original page, bestie. It's giving empty. 😭

🌸 ENVIRONMENT 🌸

No environment variables are listed in this section on the original page. 🫢

πŸ“ FILES πŸ“

No files are listed in this section on the original page. ✨

πŸ‘‘ SEE ALSO πŸ‘‘

Go bother these pages, iykyk:

πŸ’€ DIAGNOSTICS πŸ’€

Nothing is listed in this section on the original page. πŸ™ˆ

⭐ NOTES ⭐

This gnutar implementation is based on the star implementation and does not implement all features of the original GNU tar program.

πŸ™ˆ BUGS πŸ™ˆ

No bugs are listed in this section on the original page. The section is literally just sitting there, bestie. πŸ’€

πŸ’œ AUTHOR πŸ’œ

Joerg Schilling
Seestr. 110
D-13353 Berlin
Germany

Mail bugs and suggestions to:

joerg.schilling@fokus.fraunhofer.de or joerg@schily.net

πŸ’– That's the whole page, bestie β€” Joerg Schilling, 2019/03/31, GNUTAR(1). 🫢

πŸ“¦ where this page comes from