On Aug 31, 12:49 pm, Paul van Delst <Paul.vanDe... / noaa.gov> wrote: > Hello, > > I wrote a ruby script to allow me to automatically update a repository working copy from > an unversioned hierarchy. I use rsync to synchronise the directories prior to svn > add/delete and commit. Worked great on my test system (linux). However, because of > security issues, on the system where this script will be used there is no rsync utility > available. > > So, I was wondering, is there an existing rsync-like ruby solution? I checked this > newsgroup, rubyforge, raa, etc but couldn't find anything that replicated rsync > functionality (lots of utilities that use/manage rsync though.) > > Note that I don't really need the "r" portion of rsync (the sync occurs on the same > filesystem), just the ability to synchronise two hierarchies with "--exclude <files>" > capability. > > I thought I'd ask before embarking on a wheel-reinvention project. > > cheers, > > paulv > > p.s. I'm pushing my luck here, but guidance on an algorithm or recipe for sync > functionality would also be appreciated. :o) I haven't found any either, but I do have a nagios plugin using rsync to check the timestamps on remote files over rsync. New to posting here, whats the best way to post code? Include it inline? I'd be happy to share if you want it. I basically use open4 to call rsync and then parse the results. It might be helpful in your wheel project. :) Dusty Doris