Parent

Methods

Class/Module Index [+]

Quicksearch

Backup::Storage::Base

Attributes

keep[RW]

Sets the limit to how many backups to keep in the remote location. If exceeded, the oldest will be removed to make room for the newest

storage_id[RW]

(Optional) User-defined string used to uniquely identify multiple storages of the same type. This will be appended to the YAML storage file used for cycling backups.

Public Class Methods

new(model, storage_id = nil) click to toggle source

Creates a new instance of the storage object

  • Called with super(model, storage_id) from each subclass

# File lib/backup/storage/base.rb, line 22
def initialize(model, storage_id = nil)
  load_defaults!
  @model = model
  @storage_id = storage_id
end

Public Instance Methods

perform!() click to toggle source

Performs the backup transfer

# File lib/backup/storage/base.rb, line 30
def perform!
  @package = @model.package
  transfer!
  cycle!
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.