Operating System - HP-UX
1833451 Members
3082 Online
110052 Solutions
New Discussion

Re: how do I recover a deleted file

 
瑛笳濂
Occasional Contributor

how do I recover a deleted file

How to recover a deleted file ???
fzj
8 REPLIES 8
G. Vrijhoeven
Honored Contributor

Re: how do I recover a deleted file

Hi,

Recover a backup. There is no undelete available on unix. Could you specify the file deleted?

Gideon
Franky_1
Respected Contributor

Re: how do I recover a deleted file

Hi,

if you don't have a backup i'm afraid you've lost that file, because there's no recovery option for deleted files in unix

Regards

Franky
Don't worry be happy
Hoefnix
Honored Contributor

Re: how do I recover a deleted file

Hi,

If it's very importend and you do not have a backup to recover! There is one other site to look at:
http://www.porcupine.org/forensics/tct.html#features
http://www.fish.com/tct/help-recovering-file
Have a look at "unrm"
It's a toolkit used for forensic computing and made by 2 smart people:
Dan Farmer and Wietse Venema
Text from the website:
The quick version is this:

Use "unrm" to recover the data, from the file system with
the lost file, to another file system; run lazarus, and
comb through the results until you find your data.


HTH,
Peter
Muthukumar_5
Honored Contributor

Re: how do I recover a deleted file

We can not recover deleted file. If you want to recover or store from now then do as like,

When ever you remove file then, move that file into some storage area. After some period delete that file.

mkdir /var/adm/recyclebin

Move the files over there by making move instead rm command when calling rm there.
Easy to suggest when don't know about the problem!
R. Sri Ram Kishore_1
Respected Contributor

Re: how do I recover a deleted file

Hi,

Take a look at these threads (same topic has been discussed there):
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=66836
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=61612

HTH.

Regards,
Sri Ram
"What goes up must come down. Ask any system administrator."
Sยภเl Kย๓คг
Respected Contributor

Re: how do I recover a deleted file

Boss
In unix if u delete the file you won't be able to get it back unless you have back of the file.Right now you no option other than restoring the required files from the backup.

As muthu told if u want to delete a file instead of deleting it move a directory and keep.

regards
SK
Your imagination is the preview of your life's coming attractions
Matthew Hollier
Occasional Advisor

Re: how do I recover a deleted file

If you issue a command in unix, it will usually attempt to do it without questioning whether you really want to. This can be a good feature and a bad feature!

You can make the rm command a little more "novice friendly" by using the -i option and it will then ask whether you definately want to remove the file.

For example.
rm -i test
test: ? (y/n) y
Simon Hargrave
Honored Contributor

Re: how do I recover a deleted file

adding to this, you can also "novice friendly" it more by creating a shell alias. In your .profile: -

alias rm="rm -i"

This will force "rm -i"

You can still override this alias by using: -

rm -f

but at least you'll know it WILL delete all your files ;)