Skip to content

Commit

Permalink
Merge pull request #85 from Danzelot/compression
Browse files Browse the repository at this point in the history
Expand file compression section
  • Loading branch information
bast committed Apr 27, 2020
2 parents d492080 + 2073287 commit 92eeeb6
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions storage/storage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,29 @@ files you need to use 'tar' to create on archive file of the directory.
Compression of data
-------------------

Infrequently accessed files must be compressed to reduce file system
usage.
Data which is not accessed frequently like results of finished projects
should be compressed in order to reduce storage space.

Tools like gzip, bzip2 and zip are in the PATH and are available on all
nodes. The manual page for these tools are very detailed, use them for
further help::
We recommend ``xz`` and ``tar`` to compress single files or whole folder
structures. To compress a single file::

$ man gzip
$ xz file

To decompress::

$ xz --decompress file

To create a archive multiple files or folder::

$ tar cfJv archive.tar.xz files

It is recommended to use the file suffix ``.tar.xz`` to make it clear
that archive was compressed with ``xz``.

To extract a archive (use ``-C folder`` to extract the files in
folder)::

$ tar xvf archive.tar.xz


Binary data and endianness
Expand Down

0 comments on commit 92eeeb6

Please sign in to comment.