Class: Backup::Storage::S3

Inherits:
Base
  • Object
show all
Defined in:
lib/backup/storage/s3.rb

Instance Method Summary collapse

Methods included from CommandHelper

#log, #run

Constructor Details

#initialize(adapter) ⇒ S3

Stores the backup file on the remote server using S3



8
9
10
11
12
13
# File 'lib/backup/storage/s3.rb', line 8

def initialize(adapter)
  s3 = Backup::Connection::S3.new(adapter)
  s3.connect
  log("Saving '#{s3.final_file}' to s3 bucket '#{s3.s3_bucket}'")
  s3.store
end