Method: Dbsync::Sync#fetch
- Defined in:
- lib/dbsync/sync.rb
#fetch ⇒ Object
Update the local dump file from the remote source (using rsync).
55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/dbsync/sync.rb', line 55 def fetch notify "Updating '#{@local}' from '#{@remote}' via rsync..." FileUtils.mkdir_p(File.dirname(@local)) line = Cocaine::CommandLine.new('rsync', '-v :remote :local') line.run({ :remote => @remote, :local => @local }) end |