Neeraj Kumar
2007-Sep-09 14:50 UTC
How to retrieve data from Amazon AWS:S3 programmatically
I store all uploaded images at file system. Once a week I backup all the data to aws:s3 . Let''s say that the url where the data is stored is http://s3.amazonaws.com/foo/images.tar.gz On my staging server I want to retrieve this data to verify that the backup is indeed good. My question is how to retrieve images.tar.gz programmatically. Similarly I also backup the production database data to s3 and I want to retrieve that data programmatically too. This data is available as http://s3.amazonaws.com/foo/production_dump_2007-09-04_00-00-14.sql.gz Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
jemminger
2007-Sep-10 21:30 UTC
Re: How to retrieve data from Amazon AWS:S3 programmatically
I use the s3sync library to do similar tasks. Very easy to use... check out the README for s3cmd http://s3sync.net/wiki On Sep 9, 10:50 am, "Neeraj Kumar" <neeraj....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I store all uploaded images at file system. > > Once a week I backup all the data to aws:s3 . Let''s say that the url where > the data is stored is > > http://s3.amazonaws.com/foo/images.tar.gz > > On my staging server I want to retrieve this data to verify that the backup > is indeed good. > > My question is how to retrieve images.tar.gz programmatically. > > Similarly I also backup the production database data to s3 and I want to > retrieve that data programmatically too. This data is available ashttp://s3.amazonaws.com/foo/production_dump_2007-09-04_00-00-14.sql.gz > > Thanks.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Neeraj Kumar
2007-Sep-12 08:38 UTC
Re: How to retrieve data from Amazon AWS:S3 programmatically
Thanks. I''ll try that. On 9/10/07, jemminger <jemminger-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > I use the s3sync library to do similar tasks. Very easy to use... > check out the README for s3cmd > http://s3sync.net/wiki > > > On Sep 9, 10:50 am, "Neeraj Kumar" <neeraj....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I store all uploaded images at file system. > > > > Once a week I backup all the data to aws:s3 . Let''s say that the url > where > > the data is stored is > > > > http://s3.amazonaws.com/foo/images.tar.gz > > > > On my staging server I want to retrieve this data to verify that the > backup > > is indeed good. > > > > My question is how to retrieve images.tar.gz programmatically. > > > > Similarly I also backup the production database data to s3 and I want to > > retrieve that data programmatically too. This data is available > ashttp://s3.amazonaws.com/foo/production_dump_2007-09-04_00-00-14.sql.gz > > > > Thanks. > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---