Skip to content

Commit

Permalink
Adds -b 2048 option to tar command
Browse files Browse the repository at this point in the history
  • Loading branch information
aturner-epcc authored Apr 16, 2024
1 parent 6fdbc5b commit 9b1f347
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/user-guide/data.md
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,8 @@ Common options include:
- `-l` confirm all file hard links are included in the archive
- `-f` use an archive file (for historical reasons, tar writes its
output to stdout by default rather than a file).
- `-b 2048` use a 1 MiB block size (better performance and less contention
on Lustre compared to the default block size)

Putting these together:

Expand All @@ -535,10 +537,11 @@ will create and verify an archive.

To extract files from a tar file, the option `-x` is used. For example:

tar -xf mydata.tar
tar -b 2048 -xf mydata.tar

will recover the contents of `mydata.tar` to the current working
directory.
directory (using a block size of 1 MiB to improve Lustre performance and
reduce contention).

To verify an existing tar file against a set of data, the `-d` (diff)
option can be used. By default, no output will be given if a
Expand Down

0 comments on commit 9b1f347

Please sign in to comment.