Administering Networking OS — Archiving and Compression #7

College Online Material

Ghifari Nur
netSHOOT
2 min readMay 3, 2021

--

Acronis

Archiving Vs. Compression

Archiving collapses multiple files into one. A few files or multiple directories.

Compression makes a file smaller

  • Remove redundant info, replace it with a smaller code
  • Can be applied to individual files, groups of files, or entire dir. tree

Uses of Archiving and Compression

  • Managing log files
  • Sharing groups of files (Project doc, source code, etc)
  • Compressing for more efficient transfer. Fewer data to send over the internet or to tape
  • Keep like files together grouped by time (Backups)

Lossless Vs. Lossy Compression

Lossless

  • The decompressed file is the same as the original
  • Doesn’t compress as well as lossy
  • Logs, documents, binaries, configuration, etc

Lossy

  • The decompressed file might have lost info from the original
  • Drops “unimportant” info from the file to make it compress better
  • Images, sound, movies, etc

Gzip Vs. Bzip2

Gzip

  • gzip and gunzip
  • Uses Lempel-Ziv coding
  • Lossless compression, good efficiency

Bzip2

  • bzip2 and bunzip2
  • Burrows-Wheeler block sorting
  • Lossless compression slightly more efficient than gzip, but requires more CPU
  • Uses almost identically as gzip

Tape Archive (TAR) Vs. ZIP

TAR

ZIP

--

--