My mate did rake db:drop on producation , can any please help urgently

25 views
Skip to first unread message

Rajeev Kannav Sharma

unread,
Sep 14, 2011, 7:39:04 AM9/14/11
to rubyonra...@googlegroups.com
My mate did rake db:drop on producation , can any please help urgently any possible solution?

 :( 

Thanks 
Rajeev

Tim Shaffer

unread,
Sep 14, 2011, 7:46:20 AM9/14/11
to rubyonra...@googlegroups.com
Restore your database from a backup.

Kevin Bedell

unread,
Sep 14, 2011, 7:57:48 AM9/14/11
to rubyonra...@googlegroups.com
Yeah - sorry but you're screwed. Hope the backup is in good shape.


On Wed, Sep 14, 2011 at 7:46 AM, Tim Shaffer <timsh...@me.com> 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 rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-ta...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>

Colin Law

unread,
Sep 14, 2011, 9:05:19 AM9/14/11
to rubyonra...@googlegroups.com
On 14 September 2011 12:39, Rajeev Kannav Sharma

<rajeevs...@gmail.com> 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

Robert Walker

unread,
Sep 14, 2011, 10:23:56 AM9/14/11
to rubyonra...@googlegroups.com
Colin Law wrote in post #1021900:

> On 14 September 2011 12:39, Rajeev Kannav Sharma
> <rajeevs...@gmail.com> 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/.

Rob Biedenharn

unread,
Sep 14, 2011, 10:49:32 AM9/14/11
to rubyonra...@googlegroups.com

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
>> <rajeevs...@gmail.com> 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-
> ta...@googlegroups.com.


> To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
> .
>

Rob Biedenharn
R...@AgileConsultingLLC.com http://AgileConsultingLLC.com/
r...@GaslightSoftware.com http://GaslightSoftware.com/

Reply all
Reply to author
Forward
0 new messages