Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recovering of deleted folder

Status
Not open for further replies.

bhawani123

IS-IT--Management
Nov 1, 2000
152
IN
Hello Guys,

Some mistake My one folder is deleted.Can I Recover this folder? I do not have Backup of Folder.

Thanks in Advance.

Ajay
 
I don't know any built in undelete utilities in UNIX.But I heard that some third party utilities will do this work for you.One of such utilities has an evaluation version which will tell you which all filesystems and/or files can be recovered from your box.Then only you have to buy and install it,if needed.You can do a search on the net and get some of them
Hope this helps
Sun
 
HI,

Well there is no way to recover a deleted file or folder in Sun Solaris and as well as other variant of Unix...Since as soon as the file or folder get deleted, the unix operating system releases the it as free space...and as soon as a file need more disk space...it uses the deleted disk space first!! So there is no way to receover it unless you don't add disk space to your computer...-> but logs files does...but as a rule of thumb...you should always set a aliases for rm to mv to a ./WASTE folder...or rm -i to confirm you want to delete....this can prevent you from accidently removing files....also during a .logout, you can add rm -rf ./WASTE, that way when you logout, your waste basket automatically get empty.

Hope that can help you a bit.

Thanks,
Hui
 
you do have backups dont you? :)

if a folder goes missing, you could check in lost+found, but thats not a deleted folder thing thats from fsck and the like.
 
Hi htin11,

Thanks for your reply.Please can you tell me what I have to write in alias field.

Thanks,
Ajay Kumar lohani
 
alias rm /usr/bin/rm -i
alias delete ~/wastemove

in ~/wastemove file:
#!/bin/sh
/usr/bin/mv -i $* ~/WASTE/.

and chmod u+x ~/wastemove

i tried to do it as an alias, but failed, if anyone can tell me how to reorganise the alias to put in the parameters half way along, i'd be greatful (i know how to do it in VMS, but can't see how to in csh)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top