GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - caleb/rbsync: A thin Ruby wrapper around rsync

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
bin
bin
 
 
lib
lib
 
 
spec
spec
 
 
test
test
 
 
.bnsignore
.bnsignore
 
 
.gitignore
.gitignore
 
 
History.txt
History.txt
 
 
README.rdoc
README.rdoc
 
 
Rakefile
Rakefile
 
 

Repository files navigation

rbsync

by Caleb Land
http://www.github.com/caleb/rbsync

DESCRIPTION:

RBSync is a thin Ruby wrapper around rsync. It removes the string building from calling rsync from ruby.

FEATURES/PROBLEMS:

  • RBSync is a thin wrapper so it exposes as much of rsync’s power as possible

  • RBSync requires that rsync be installed

SYNOPSIS:

RBSync has a convenience class which makes it easy to sync with rsync’s archive (-a) flag:

import 'rubygems'
import 'rbsync'

# Builds a usable rsync command using the -a (archive) flag to rsync
rsync = RBSync::RBSync.new '/mysite/', '[email protected]:/var/www/mysite'
rsync.archive!
rsync.go!

If you want more control, you could specify each flag separately. This command is equivalent to the one above:

rsync = RBSync::RBsync.new '/mysite/', '[email protected]:/var/www/mysite'
# turns on rsync's delete flag (--delete)
rsync.delete!
rsync.recursive!
rsync.links!
rsync.perms!
rsync.times!
rsync.group!
rsync.owner!
rsync.devices!
rsync.specials!
rsync.go!

You can even use the archive flag and turn off those flags which you don’t want:

rsync = RBSync::RBsync.new '/mysite/', '[email protected]:/var/www/mysite'
rsync.archive!

# turn off the times (--times) flag
~ rsync.times!

# turn off the devices (--devices) flag
rsync.devices = false

# turn off the recursive (--recursive) flag
rsync.no.recursive!

rsync.go!

REQUIREMENTS:

  • Ruby >= 1.8.7

INSTALL:

  • sudo gem install rbsync

LICENSE:

(The MIT License)

Copyright © 2009

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

A thin Ruby wrapper around rsync

www.github.com/caleb/rbsync

Resources

Readme
Activity

Stars

3 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.