# Database table restore

**URL:** <https://www.ruby-forum.com/t/database-table-restore/172125>\
**Category:** Rails\
**Created:** [July 15, 2009, 9:03am UTC](https://www.ruby-forum.com/t/database-table-restore/172125 "2009-07-15T09:03:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![santoshturamari](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee59a6/32.png) [@santoshturamari](https://www.ruby-forum.com/u/santoshturamari)\
**Post date:** [July 15, 2009, 9:03am UTC](https://www.ruby-forum.com/t/database-table-restore/172125/1 "2009-07-15T09:03:51Z")

</div>

Hi guys,  
We have a table named layoff\_comments in our database, but  
accidentally we have deleted(lost) all the data from this table, we have  
backup, and we want to restore that table, without dropping the current  
database. Please help us.

Thanx in advance.

---

<div class="post-metadata">

**Author:** ![santoshturamari](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ee59a6/32.png) [@santoshturamari](https://www.ruby-forum.com/u/santoshturamari)\
**Post date:** [July 15, 2009, 5:23pm UTC](https://www.ruby-forum.com/t/database-table-restore/172125/2 "2009-07-15T17:23:25Z")

</div>

> Hi guys,
> 
> We have a table named layoff\_comments in our database,  
> but accidentally we have deleted(lost) all the data from  
> this table, we have backup, and we want to restore that  
> table, without dropping the current database. Please help  
> us.
> 
> Thanx in advance.

You’ll likely get better advice on a forum devoted to whatever db you’re  
using I think. Rails doesn’t have any restore-from-backup functionality  
built into it.

Good luck!

-Roy

GHC Confidentiality Statement

This message and any attached files might contain confidential  
information protected by federal and state law. The information is  
intended only for the use of the individual(s) or entities originally  
named as addressees. The improper disclosure of such information may be  
subject to civil or criminal penalties. If this message reached you in  
error, please contact the sender and destroy this message. Disclosing,  
copying, forwarding, or distributing the information by unauthorized  
individuals or entities is strictly prohibited by law.
