The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to undelete pratim09 UNIX for Advanced & Expert Users 1 05-10-2008 02:04 AM
to get the timestamp of files from the files and folders in Unix kishan HP-UX 2 04-09-2008 05:20 AM
Unix Sco Open Server, Windows Computers Problem Access Unix Shared Files Help!!!!! haggo Filesystems, Disks and Memory 2 08-23-2006 08:39 AM
Undelete files Bacchus Filesystems, Disks and Memory 0 05-25-2006 07:13 AM
undelete krishna UNIX for Advanced & Expert Users 3 01-08-2002 02:14 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-14-2006
Registered User
 

Join Date: Sep 2006
Posts: 36
Stumble this Post!
Undelete files in Unix

Hi

Is there any way to restore files accidentally deleted in Unix
(other than rm -i)
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-14-2006
Technorati Master
 

Join Date: Mar 2005
Location: Large scale systems...
Posts: 2,572
Stumble this Post!
tape backups

restore from external storage devices
Reply With Quote
  #3 (permalink)  
Old 12-14-2006
justsam's Avatar
Registered User
 

Join Date: Oct 2006
Location: Bangalore,India
Posts: 37
Stumble this Post!
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
Reply With Quote
  #4 (permalink)  
Old 12-14-2006
Registered User
 

Join Date: Dec 2006
Posts: 22
Stumble this Post!
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.
Reply With Quote
  #5 (permalink)  
Old 12-14-2006
Registered User
 

Join Date: Sep 2006
Posts: 36
Stumble this Post!
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
Reply With Quote
  #6 (permalink)  
Old 12-15-2006
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,324
Stumble this Post!
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.
Reply With Quote
  #7 (permalink)  
Old 12-15-2006
Registered User
 

Join Date: Sep 2006
Posts: 1,542
Stumble this Post!
I used to play with this . please do not try if you are not confident to play with it.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:28 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0