Class Backup::Compressor::Custom
In: lib/backup/compressor/custom.rb
Parent: Base

Methods

new  

Attributes

command  [RW]  Specify the system command to invoke a compressor, including any command-line arguments. e.g. @compressor.command = ‘pbzip2 -p2 -4‘

The data to be compressed will be piped to the command‘s STDIN, and it should write the compressed data to STDOUT. i.e. `cat file.tar | %command% > file.tar.%extension%`

extension  [RW]  File extension to append to the compressed file‘s filename. e.g. @compressor.extension = ’.bz2‘

Public Class methods

Initializes a new custom compressor.

[Validate]