Class Backup::Compressor::Bzip2
In: lib/backup/compressor/bzip2.rb
Parent: Base

Methods

compress_with   new  

Attributes

best  [RW]  Tells Backup::Compressor::Bzip2 to compress better (-9) rather than faster when set to true
fast  [RW]  Tells Backup::Compressor::Bzip2 to compress faster (-1) rather than better when set to true

Public Class methods

Creates a new instance of Backup::Compressor::Bzip2 and configures it to either compress faster or better bzip2 compresses by default with -9 (best compression) and lower block sizes don‘t make things significantly faster (according to official bzip2 docs)

Public Instance methods

Yields to the block the compressor command with options and it‘s filename extension.

[Validate]