Class Backup::Archive
In: lib/backup/archive.rb
Parent: Object

Methods

add   exclude   new   perform!   tar_options  

Included Modules

Backup::CLI::Helpers

Attributes

excludes  [RW]  Stores an array of different paths/files to exclude
name  [RW]  Stores the name of the archive
paths  [RW]  Stores an array of different paths/files to store
tar_args  [RW]  String of additional arguments for the `tar` command

Public Class methods

Takes the name of the archive and the configuration block

Public Instance methods

Adds new paths to the @paths instance variable array

Adds new paths to the @excludes instance variable array

Archives all the provided paths in to a single .tar file and places that .tar file in the folder which later will be packaged If the model is configured with a Compressor, the tar command output will be piped through the Compressor command and the file extension will be adjusted to indicate the type of compression used.

Adds the given String of options to the `tar` command. e.g. ’-h —xattrs‘

[Validate]