I suspect this is not exactly a Ruby/Rails topic but I also suspect that lots of people here have already solved this issue. We have a simple app running on a SliceHost slice and we''d like to backup the database both hourly and daily to an AWS S3 account. I''ve looked around but surprisingly can''t seem to find anything that offers a complete solution for doing this. I was hoping to find a ruby solution but so far nothing. I suspect that it''s not a super hard thing to do but it''s not really my specialty so I was hoping someone here might simply point me in the right direction - perhaps a blog post or something similar. Dale --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
PeteSalty wrote:> I suspect this is not exactly a Ruby/Rails topic but I also suspect > that lots of people here have already solved this issue. We have a > simple app running on a SliceHost slice and we''d like to backup the > database both hourly and daily to an AWS S3 account. > I''ve looked around but surprisingly can''t seem to find anything that > offers a complete solution for doing this. I was hoping to find a ruby > solution but so far nothing. I suspect that it''s not a super hard > thing to do but it''s not really my specialty so I was hoping someone > here might simply point me in the right direction - perhaps a blog > post or something similar. > > DaleYou could setup a cron job to do it as you mentioned [mysqldump]. You could try a mysql table syncer http://code.google.com/p/ruby-roger-useful-functions/wiki/TableSyncer Cheers. -=r -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I always use automysqlbackup (http://sourceforge.net/projects/automysqlbackup/). It''s not ruby, but it''s damn fine for backing up MySQL especially if you need to backup several databases on the same server. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 15 Oct 2008, at 11:18, Christian Johansen wrote:> I always use automysqlbackup > (http://sourceforge.net/projects/automysqlbackup/). It''s not ruby, but > it''s damn fine for backing up MySQL especially if you need to backup > several databases on the same server.I use my own bash Shell script. It commits all the database dumps to a git repository and then pushes it to a central repository (but the script could just as easily be modified to use svn or mercurial or ...). That way you have versioned backups both on the local machine as on a remote host (or hosts even) going back as far as you want. Then just let a cron take care of executing the script as frequently as you want. http://pastie.org/293699 Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thanks a lot Peter! On Oct 16, 8:59 am, Peter De Berdt <peter.de.be...-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> wrote:> On 15 Oct 2008, at 11:18, Christian Johansen wrote: > > > I always use automysqlbackup > > (http://sourceforge.net/projects/automysqlbackup/). It''s not ruby, but > > it''s damn fine for backing up MySQL especially if you need to backup > > several databases on the same server. > > I use my own bash Shell script. It commits all the database dumps to a > git repository and then pushes it to a central repository (but the > script could just as easily be modified to use svn or mercurial > or ...). That way you have versioned backups both on the local machine > as on a remote host (or hosts even) going back as far as you want. > Then just let a cron take care of executing the script as frequently > as you want. > > http://pastie.org/293699 > > Best regards > > Peter De Berdt--~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---