Title: Calling s3sync from another ruby app Post by: gtc on February 18, 2007, 12:16:27 AM Any tips on using s3sync from another ruby app? I'm thinking about making a TextMate/e Text Editor (http://www.e-texteditor.com) AmazonS3 bundle (written in Ruby), and rather than start from scratch, I thought I could perhaps use s3sync. One command I was thinking of writing was a command to back up the Bundles/local directory (which often contains a lot of customized stuff you might not want to loose). Or, more generally, the ability to back up and restore project directories from S3. I generally use Subversion for this stuff, but I'm not really happy unless I have my data in 3 different backup locations.
Thanks for any ideas. Title: Re: Calling s3sync from another ruby app Post by: ferrix on February 18, 2007, 04:58:59 AM Well trivially speaking you could call it as a system command.
To do something more sophisticated would require bit of a refactor of the code. Right now, the options setting, command-line parsing, and outer "main" execution are all sort of tightly coupled. I had not ever envisioned making an API, per se. It's a good idea though. Title: Re: Calling s3sync from another ruby app Post by: rondari on March 10, 2007, 07:00:08 AM I was saying this on the other thread ... but I'll repeat it here just in case no one reads teh other thread.
been playing around with aws-s3 and I'm really disapointed with it, it has major problems on windows ... s3sync seems to be more mature .... would _love_ an API to use from within RUBY apps. Title: Re: Calling s3sync from another ruby app Post by: David on May 23, 2007, 07:14:34 AM first of all: s3sync rocks.
currently I call from my ruby application a shell script that sets the environment variables and that finally executes s3sync.rb...nasty but it works :) in short: I would very much love to use an API version of s3sync. David |