Rajeev Kannav Sharma
2011-Sep-14 11:39 UTC
My mate did rake db:drop on producation , can any please help urgently
My mate did rake db:drop on producation , can any please help urgently any possible solution? :( Thanks Rajeev -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/rd7SZig803cJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Tim Shaffer
2011-Sep-14 11:46 UTC
Re: My mate did rake db:drop on producation , can any please help urgently
Restore your database from a backup. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/yyTF7aVy6akJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Kevin Bedell
2011-Sep-14 11:57 UTC
Re: Re: My mate did rake db:drop on producation , can any please help urgently
Yeah - sorry but you''re screwed. Hope the backup is in good shape. On Wed, Sep 14, 2011 at 7:46 AM, Tim Shaffer <timshaffer-BUHhN+a2lJ4@public.gmane.org> wrote:> Restore your database from a backup. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/yyTF7aVy6akJ. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Colin Law
2011-Sep-14 13:05 UTC
Re: My mate did rake db:drop on producation , can any please help urgently
On 14 September 2011 12:39, Rajeev Kannav Sharma <rajeevsharma86-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> My mate did rake db:drop on producation , can any please help urgently any > possible solution?A red hot poker possibly? Other than that I think you will have to restore from backup. If you have not got one then possibly the web site host does. Colin -- gplus.to/clanlaw -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Robert Walker
2011-Sep-14 14:23 UTC
Re: My mate did rake db:drop on producation , can any please help urgently
Colin Law wrote in post #1021900:> On 14 September 2011 12:39, Rajeev Kannav Sharma > <rajeevsharma86-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> My mate did rake db:drop on producation , can any please help urgently any >> possible solution? > > Other than that I think you will have to restore from backup. If you > have not got one then possibly the web site host does.Oh, and while you''re at it... Fire your mate! :-) If you are able to recover from this, I''m guessing your next task is to implement a backup strategy. Remember, having one copy is not a sufficient backup policy. I don''t consider data to be "backed up" until there is at minimum two full backups (the original, plus one local backup, plus 1 off-site backup). I created two command line scripts for my production server. One runs on the server using cron to perform a local mysqldump as a local backup. The second one runs under launchd on my main development Mac, which uses secure copy (scp) to download the backup file that was generated by the script that runs on the 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Rob Biedenharn
2011-Sep-14 14:49 UTC
Re: Re: My mate did rake db:drop on producation , can any please help urgently
On Sep 14, 2011, at 10:23 AM, Robert Walker wrote:> Colin Law wrote in post #1021900: >> On 14 September 2011 12:39, Rajeev Kannav Sharma >> <rajeevsharma86-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >>> My mate did rake db:drop on producation , can any please help >>> urgently any >>> possible solution? >> >> Other than that I think you will have to restore from backup. If you >> have not got one then possibly the web site host does. > > Oh, and while you''re at it... Fire your mate! :-) > > If you are able to recover from this, I''m guessing your next task is > to > implement a backup strategy. Remember, > having one copy is not a sufficient backup policy. I don''t consider > data > to be "backed up" until there is at minimum two full backups (the > original, plus one local backup, plus 1 off-site backup).I''ll add that you don''t really have a backup policy (strategy) until you are sure that you can RESTORE your backup. It doesn''t matter how many copies you have if you can''t use them. -Rob P.S. The larger strategy which includes backup is a disaster recovery plan. Could you recreate a production environment on a completely clean platform?> > I created two command line scripts for my production server. One > runs on > the server using cron to perform a local mysqldump as a local backup. > The second one runs under launchd on my main development Mac, which > uses secure copy (scp) to download the backup file that was > generated by > the script that runs on the 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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 > . >Rob Biedenharn Rob-xa9cJyRlE0mWcWVYNo9pwxS2lgjeYSpx@public.gmane.org http://AgileConsultingLLC.com/ rab-/VpnD74mH8+00s0LW7PaslaTQe2KTcn/@public.gmane.org http://GaslightSoftware.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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.