Class: Backup::Syncer::RSync::Local

Inherits:
Base
  • Object
show all
Defined in:
lib/backup/syncer/rsync/local.rb

Instance Attribute Summary

Attributes inherited from Base

#additional_rsync_options, #archive

Attributes inherited from Base

#excludes, #mirror, #path, #syncer_id

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods inherited from Base

#add, #directories, #exclude, #initialize

Methods included from Config::Helpers

included

Constructor Details

This class inherits a constructor from Backup::Syncer::RSync::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Backup::Config::Helpers

Instance Method Details

#perform!Object



5
6
7
8
9
10
11
12
# File 'lib/backup/syncer/rsync/local.rb', line 5

def perform!
  log!(:started)

  create_dest_path!
  run("#{rsync_command} #{paths_to_push} '#{dest_path}'")

  log!(:finished)
end