Method: Backup::Storage::RSync#initialize
- Defined in:
- lib/backup/storage/rsync.rb
#initialize(model, storage_id = nil) ⇒ RSync
Returns a new instance of RSync.
130 131 132 133 134 135 136 137 |
# File 'lib/backup/storage/rsync.rb', line 130 def initialize(model, storage_id = nil) super @mode ||= :ssh @port ||= mode == :rsync_daemon ? 873 : 22 @compress ||= false @path ||= '~/backups' end |