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.
>
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
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/.
> 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/