Skip to content

Commit

Permalink
man, shell completion: add --dry-run-metadata
Browse files Browse the repository at this point in the history
These changes were made automatically via scripts.
  • Loading branch information
gperciva committed Dec 22, 2023
1 parent a5ed0c6 commit c0e4bec
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 7 deletions.
14 changes: 7 additions & 7 deletions misc/bash_completion.d/tarsnap
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ _tarsnap ()
longopts="--aggressive-networking --archive-names --cachedir \
--check-links --checkpoint-bytes --chroot --configfile \
--creationtime --csv-file --disk-pause --dry-run \
--dump-config --exclude --fast-read --force-resources \
--fsck --fsck-prune --hashes --humanize-numbers \
--include --initialize-cachedir --insane-filesystems \
--iso-dates --keep-going --keep-newer-files --keyfile \
--list-archives --lowmem --maxbw --maxbw-rate \
--maxbw-rate-down --maxbw-rate-up --newer \
--newer-mtime --newer-than --newer-mtime-than \
--dry-run-metadata --dump-config --exclude --fast-read \
--force-resources --fsck --fsck-prune --hashes \
--humanize-numbers --include --initialize-cachedir \
--insane-filesystems --iso-dates --keep-going \
--keep-newer-files --keyfile --list-archives --lowmem \
--maxbw --maxbw-rate --maxbw-rate-down --maxbw-rate-up \
--newer --newer-mtime --newer-than --newer-mtime-than \
--no-aggressive-networking --no-config-exclude \
--no-config-include --no-default-config \
--no-disk-pause --no-force-resources \
Expand Down
1 change: 1 addition & 0 deletions misc/zsh_completion/_tarsnap
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ _shtab_tarsnap_c_options=(
"--creationtime[manually specify a creation time for the archive]:X:"
"--disk-pause[often pause for ARG ms while creating an archive]:X:"
"--dry-run[do not really create an archive\; just simulate doing so]"
"--dry-run-metadata[do not really create an archive\; just simulate the metadata]"
"--exclude[do not process certain files or directories]:pattern:"
"-f[specify name of archive to operate on]:archive-name:(${archive_list}):"
"-H[store the targets of a symbolic links]"
Expand Down
20 changes: 20 additions & 0 deletions tar/tarsnap.1-man.in
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,26 @@ Furthermore,
\fB\--dry-run\fP
will not check whether the cache directory is out of sync.
.TP
\fB\--dry-run-metadata\fP
(c mode only)
Don't really create an archive; just simulate doing so.
This is similar to
\fB\--dry-run\fP,
except that it doesn't read any files; it only processes filesystem metadata.
.PP
This is significantly faster than a regular
\fB\--dry-run\fP,
but it is still suitable for checking which filesystem entries will be
archived (with
\fB\-v\fP),
or getting the total uncompressed archive size (via
\fB\--totals\fP
or
\fB\--progress-bytes\fP).
.PP
This option cannot be used with
\fB\--print-stats\fP.
.TP
\fB\--dump-config\fP
Print out the command-line and all non-blank lines read from config files.
.TP
Expand Down

0 comments on commit c0e4bec

Please sign in to comment.