jbussdieker/ruby-rsync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build StatusCode ClimateGem VersionCoverage StatusDependency Status

Ruby/Rsync is a Ruby library that can syncronize files between remote hosts by wrapping a call to the rsync binary.

Minimal example

require "rsync"

result = Rsync.run("/path/to/src", "/path/to/dest")

Complete example

require "rsync"

Rsync.run("/path/to/src", "/path/to/dest") do |result|
  if result.success?
    result.changes.each do |change|
      puts "#{change.filename} (#{change.summary})"
    end
  else
    puts result.error
  end
end

About

Ruby/Rsync is a Ruby library that can syncronize files between remote hosts by wrapping a call to the rsync binary.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5

Languages