Undelete files in Unix


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Undelete files in Unix
# 1  
Old 12-14-2006
Undelete files in Unix

Hi

Is there any way to restore files accidentally deleted in Unix
(other than rm -i)
# 2  
Old 12-14-2006
tape backups

restore from external storage devices
# 3  
Old 12-14-2006
Hi,

I use a Solaris M/c. In my Home directory, there's a .snaopshot dir where in backup is present. Our settings let the system to take a backup daily... so if i deleted a file created yes'day or earlier.. i can go to this .snapshot and restore the file... we can configure the system to take hourly backups too... depends on the admin...

Regards,
Justsam
justsam
# 4  
Old 12-14-2006
I don't believe there is any way to restore files deleted from the filesystem, and "rm -i" doesn't have anything to do with restoring already deleted files.

from the man page:

Code:
     -i          Request confirmation before attempting to remove each file,
                 regardless of the file's permissions, or whether or not the
                 standard input device is a terminal.  The -i option overrides
                 any previous -f options.

# 5  
Old 12-15-2006
No Guys ,

I was talking about some utility like we had PCTOOLS in DOS or something like that
Taking backups and snapshots are all fine but what if someone does delete something ...

shouldn't Unix give some Recycle bin feature like WINDOWS


I distinctly remember that there is some undocumented feature on this
and what's more this is a frequently asked question in Interviews as well
# 6  
Old 12-15-2006
File deletion is irrevocable. The default 'rm' command will not store any information for the file that will allow an undelete.

Any recycle bins that you might see on a GUI would probably be implemented by the GUI itself.
# 7  
Old 12-15-2006
I used to play with this . please do not try if you are not confident to play with it.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Undelete, backup inodes

is there a way to backup all inodes? (could that help with undeleting files?) (9 Replies)
Discussion started by: orange47
9 Replies

2. Shell Programming and Scripting

UNIX command to copy files from Windows to UNIX box

Hi Folks, I have a file name abc.xml in my windows machine at the location c:\ytr\abc.xml which I want to place at the unix box machine inside cde directory.. at the following location that is /opt/app/cde/ now the credentials of unix box are abc345 -->(dummyid) ftyiu88--->(dummy passwd) ... (4 Replies)
Discussion started by: punpun66
4 Replies

3. SCO

Versioning through undelete

Hi , I am using SCO openserver realease 3.2 and tried to test versioning on a directory with undelete -s . The command executes well but it is not creating any versions of the files in it. I have also setted versioning options via filesystem and then remounted it but of ... (0 Replies)
Discussion started by: dextergenious
0 Replies

4. UNIX for Dummies Questions & Answers

write a program in c in unix that display the files(includ sub-direc and files within) in a sorted

the sorting is based on name of file, file size modification time stamps o f file it should dislay the output in the following format "." and ".." enteries should be ignored please give some idea how to do it (1 Reply)
Discussion started by: pappu kumar jha
1 Replies

5. Shell Programming and Scripting

How to extract data from indexed files (ISAM files) maintained in an unix server.

Hi, Could someone please assist on a quick way of How to extract data from indexed files (ISAM files) maintained in an UNIX(AIX) server.The file data needs to be extracted in flat text file or CSV or excel format . Usually we have programs in microfocus COBOL to extract data, but would like... (2 Replies)
Discussion started by: devina
2 Replies

6. UNIX for Advanced & Expert Users

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 (10 Replies)
Discussion started by: snowline84
10 Replies

7. UNIX for Advanced & Expert Users

How to undelete

Hi Is there a way by which I can recover the last deleted file file from a folder. OR I had a file in a path .(i didnt notice the size at that time ) I tried ftp that file to my windows but got file of zero size. I want to check whether the file was already empty when I tried ftping it... (1 Reply)
Discussion started by: pratim09
1 Replies

8. Filesystems, Disks and Memory

Unix Sco Open Server, Windows Computers Problem Access Unix Shared Files Help!!!!!

Hello Moto I hope someone can help We's here at work, have a unix box with sco openserver 5 on it, so it has a nice gui interface.. and also a fair few windows computers.. a system admin guy b4 me, has set up a user called neil, which can, when u try to access the unix box using windows... (2 Replies)
Discussion started by: haggo
2 Replies

9. Filesystems, Disks and Memory

Undelete files

Right, a mate of mine screwed up today and deleted the entire contents of a directory and he really needs to get the files back. He's using Red Hat Enterprise Edition 4. The files were deleted using rm *. He can't remember if the hard drive was formatted using ext2 or ext3. Anybody have any idea... (0 Replies)
Discussion started by: Bacchus
0 Replies

10. UNIX for Advanced & Expert Users

undelete

Hi All, I just given $rm abc.pc, I don't have backup also. is there any way to recover? thanks in advance krishna (3 Replies)
Discussion started by: krishna
3 Replies
Login or Register to Ask a Question