Operating System - HP-UX
1833875 Members
2001 Online
110063 Solutions
New Discussion

recovering a deleted files

 
SOLVED
Go to solution
Shivkumar
Super Advisor

recovering a deleted files

Dear Sirs,

Does hpux 11i has some commands or way to recover any deleted files ?

Thanks,
Shiv
6 REPLIES 6
Adisuria Wangsadinata_1
Honored Contributor
Solution

Re: recovering a deleted files

Hi Shiv,

As far as i know, HP-UX dont have a features like a recycle bin on Windows.

Just restore back from the backup, and always do backup before change anything.

Cheers,
AW
now working, next not working ... that's unix
Mel Burslan
Honored Contributor

Re: recovering a deleted files

The filesystem of the hpux works in similar ways comapred to windows when it comes to deleting files. So, when you delete any file, the inode desriptor gets returned to the free block pool to be used by other file write requests. So, it actually is possible to recover data to some extent and as far as I know there are some rogue, home-brew applications to facilitate this.

On the flipside, as we all know, in unix, everything is treated as files, hence there is a lot of write activity going on to the disks at any given time. So, when you delete a file, the blocks freed up by deletion getting used for another write, is highly likely. Hence, even if you locate these rogue applications, they won't be much help, unless you are happy to salvage whatever you can. So, going back to the backup tapes is the best undelete you can do.
________________________________
UNIX because I majored in cryptology...
Vibhor Kumar Agarwal
Esteemed Contributor

Re: recovering a deleted files

Once i read in a article:

When you delete a file or anything the inode is freed, the unix follows a process in which the freed inode has the largest possiblity of being reallocated.

So if you accidently delete a file "immediately reboot the system"

Now some of the tools which were described above will come in handy.
Vibhor Kumar Agarwal
Cem Tugrul
Esteemed Contributor

Re: recovering a deleted files

Shiv,

the only way is restore from backup and
As far as i know unix systems do not have a
recyle bin as Microsoft Windows

Good Luck,
Our greatest duty in this life is to help others. And please, if you can't
Yogeeraj_1
Honored Contributor

Re: recovering a deleted files

hi,

you can also implement a "del" script that will "move" the files to a temporary directory instead of deleting it. Then schedule a cron job that will periodically purge that temporary directory...

hope this helps too!

regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Mahesh Kumar Malik
Honored Contributor

Re: recovering a deleted files

Hi Shiv

There is no command in hpux11i to recover the deleted file. Only way to recover is to restore it from backup. Following page is interesting to read:

http://www.faqs.org/faqs/unix-faq/faq/part3/section-6.html

Regards
Mahesh