S3Sync.net
February 02, 2014, 01:28:34 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Calling s3sync from another ruby app  (Read 4469 times)
gtc
Newbie
*
Posts: 3


View Profile
« 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 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.
Logged
ferrix
Sr. Member
****
Posts: 363


(I am greg13070 on AWS forum)


View Profile
« Reply #1 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.
Logged
rondari
Newbie
*
Posts: 8


View Profile
« Reply #2 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.

Logged
David
Newbie
*
Posts: 1


View Profile
« Reply #3 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 Smiley

in short: I would very much love to use an API version of s3sync.

David


Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!