Filter the archive through gzip(1).
-Z, --compress, --uncompress
Filter the archive through compress(1).
--zstd Filter the archive through zstd(1).
Local file selection
--add-file=FILE
Add FILE to the archive (useful if its name starts with a dash).
--backup[=CONTROL]
Backup before removal. The CONTROL argument, if supplied, controls the backup policy. Its valid values are:
none, off
Never make backups.
t, numbered
Make numbered backups.
nil, existing
Make numbered backups if numbered backups exist, simple backups otherwise.
never, simple
Always make simple backups
If CONTROL is not given, the value is taken from the VERSION_CONTROL environment variable. If it is not set, existing is assumed.
-C, --directory=DIR
Change to DIR before performing any operations. This option is order‐sensitive, i.e. it affects all options that follow.
--exclude=PATTERN
Exclude files matching PATTERN, a glob(3)‐style wildcard pattern.
--exclude-backups
Exclude backup and lock files.
--exclude-caches
Exclude contents of directories containing file CACHEDIR.TAG, except for the tag file itself.
--exclude-caches-all
Exclude directories containing file CACHEDIR.TAG and the file itself.
--exclude-caches-under
Exclude everything under directories containing CACHEDIR.TAG
--exclude-ignore=FILE
Before dumping a directory, see if it contains FILE. If so, read exclusion patterns from this file. The patterns affect only the directory itself.
--exclude-ignore-recursive=FILE
Same as --exclude-ignore, except that patterns from FILE affect both the directory and all its subdirectories.
--exclude-tag=FILE
Exclude contents of directories containing FILE, except for FILE itself.
--exclude-tag-all=FILE
Exclude directories containing FILE.
--exclude-tag-under=FILE
Exclude everything under directories containing FILE.
--exclude-vcs
Exclude version control system directories.
--exclude-vcs-ignores
Exclude files that match patterns read from VCS‐specific ignore files. Supported files are: .cvsignore, .gitignore, .bzrignore, and .hgignore.
-h, --dereference
Follow symlinks; archive and dump the files they point to.
--hard-dereference
Follow hard links; archive and dump the files they refer to.
-K, --starting-file=MEMBER
Begin at the given member in the archive.
--newer-mtime=DATE
Work on files whose data changed after the DATE. If DATE starts with / or . it is taken to be a file name; the mtime of that file is used as the date.
--no-null
Disable the effect of the previous --null option.
--no-recursion
Avoid descending automatically in directories.
--no-unquote
Do not unquote input file or member names.
--no-verbatim-files-from
Treat each line read from a file list as if it were supplied in the command line. I.e., leading and trailing whitespace is removed and, if the resulting string begins with a dash, it is treated as tar command
line option.
This is the default behavior. The --no-verbatim-files-from option is provided as a way to restore it after --verbatim-files-from option.
This option is positional: it affects all --files-from options that occur after it in, until --verbatim-files-from option or end of line, whichever occurs first.
It is implied by the --no-null option.
--null Instruct subsequent -T