Method: Dbsync::Sync#clone_dump

Defined in:
lib/dbsync/sync.rb

#clone_dumpObject

Copy the remote dump file to a local destination. Instead of requiring two different tools (rsync and scp) for this library, instead we’ll just remove the local file if it exists then run rsync, which is essentially a full copy.



99
100
101
102
103
# File 'lib/dbsync/sync.rb', line 99

def clone_dump
  notify "Copying '#{@remote}' into '#{@local}' via rsync..."
  FileUtils.rm_f(@local)
  fetch
end