Skip to content
Ruby/Rsync is a Ruby library that can syncronize files between remote hosts by wrapping a call to the rsync binary.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib Expose the `permission denied (publickey)` error when using ssh. Apr 30, 2016
spec
.gitignore added host configuration option. Oct 31, 2013
.rspec
.travis.yml
Gemfile Add coveralls Jan 21, 2014
LICENSE.txt Initial commit Jul 23, 2013
README.md Update README.md Mar 29, 2015
Rakefile
rsync.gemspec

README.md

Rsync

Build Status Code Climate Gem Version Coverage Status Dependency Status

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

Usage

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
You can’t perform that action at this time.