• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1890
  • Last Modified:

How to restore a file that was overwritten?

How do you restore a file that was overwritten?
0
wirelessadmin
Asked:
wirelessadmin
  • 2
2 Solutions
 
brettmjohnsonCommented:
Fetch it from your backup.  I'm serious.  Keep backups of your crucial data.
You can back up to a second hard disk, a network storage server, or even to your .Mac iDisk.
In a pinch, you can back up your data to another directory on your disk, but that doesn't protect it from catastrophic disk failure.

Once you overwrite the bits of a file with different bits, it becomes extremely difficult to recover the data.  That is how Mac OS X Secure Delete works - it overwrites the data multiple times before deleting the file.

Note that many applications actually don't overwrite existing files.  They write out to a new file, flush the data to disk, then delete the original, and finally rename the new file to the old name.  This is a safety measure; if the program crashes while writing out the data, there will be at least one intact version of the file on disk [barring disk cache issues].  In this tempfile/delete/rename scenario, you might be saved; because your disaster resembles the more traditional "accidently deleted file" problem.  There are several utilities available to help your recover deleted files.  Simply google "Mac OS X recover deleted file".
0
 
wirelessadminAuthor Commented:
I have a backup, but its 12hrs behind
the problem is this happened before the midnight backup
I opened the wrong database file on the server which overwrote the old one
0
 
brettmjohnsonCommented:
Good, recreating 12 hours worth of work is easier than recreating 12 months worth of work.
0
 
rogierCommented:
It's overwritten in the directory of the drive but it might still exist. don't use the machine anymore, and try recovery software. Chances are small, though. There is no garantee.

Datarescue offers you a working demo here:
http://www.prosofteng.com/products/downloadcenter.php?PHPSESSID=fe4a7f0b6875f49ac21c12b74ffbf2f4

good luck
rogier.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now