![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to undelete | pratim09 | UNIX for Advanced & Expert Users | 1 | 05-10-2008 02:04 AM |
| Undelete files in Unix | misenkiser | UNIX for Dummies Questions & Answers | 10 | 12-20-2006 01:31 PM |
| Undelete files | Bacchus | Filesystems, Disks and Memory | 0 | 05-25-2006 07:13 AM |
| Reading file names from a file and executing the relative file from shell script | anushilrai | Shell Programming and Scripting | 4 | 03-10-2006 02:25 AM |
| undelete | krishna | UNIX for Advanced & Expert Users | 3 | 01-08-2002 03:14 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
UNDELETE a file
Hi,
In tcsh, I mistakenly deleted some files under a dir with rm * Is there any way by which I can recover those files (without restoring to an earlier backup point) ? I mean any command like undelete or anything similar |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
If you have any programs running that still have the files open or if you have any other hardlinks to the files, they can be recovered.
If the data is of sufficient value to warrant it, you can ship the disk to a data recovery specialist but these people generally charge a great deal for this sort of work. Otherwise I'm afraid you are looking at a restore from backup as your only other option. |
|
#3
|
|||
|
|||
|
Manier times the editor you use (I use vi & emacs) creates it own temporay backup files. If you can not recover the original one, you can use the backup files. They normally contains the data till your last save
|
|
#4
|
||||
|
||||
|
It would depend heavily on the name of the backup file though. Emacs just adds a tilde (~) character to the name, so that would have been also deleted by an rm *. Generic vi doesn't save backups but there's a stack of varients out there, if it happens to save to a .blah file, those would have been preserved.
|
|
#5
|
|||
|
|||
|
If the process is still running and did not yet close the file descriptor you can recover it directly via the file descriptor in /proc (on linux)
|
|
#6
|
|||
|
|||
|
I think the short answer is " game over, unless you are into heavy wizardry".
|
|
#7
|
|||
|
|||
| Google The UNIX and Linux Forums |