Operating System - HP-UX
1753922 Members
7607 Online
108810 Solutions
New Discussion юеВ

How to recovey directory which has been removed

 
Hudson Hua
Occasional Advisor

How to recovey directory which has been removed

Hi,
I've removed a directory with "rm -rf" with careless , now I want to recove the directory. Who can help me?
11 REPLIES 11
Robert Gezelter
Honored Contributor

Re: How to recovey directory which has been removed

Hudson,

Perhaps you are using an operating system other than OpenVMS.

HP/UX or Linux, perhaps?

- Bob Gezelter, http://www.rlgsc.com
Pete Randall
Outstanding Contributor

Re: How to recovey directory which has been removed

Easy enough. Just get out your backup tapes (you do have backups, don't you?) and restore from them. Otherwise you're out of luck.


Pete

Pete
James R. Ferguson
Acclaimed Contributor

Re: How to recovey directory which has been removed

Hi:

You are out-of-luck. UNIX does exactly what you tell it. You can recreate directories with 'mkdir' but you need to recover their contents from your last backup(s).

Regards!

...JRF...
Patrick Wallek
Honored Contributor

Re: How to recovey directory which has been removed

Sorry, but HP-UX has NO CONCEPT of a "trash can" like some other operating system you may be used to.

If you have a backup, you will need to restore. If you don't, you are pretty much out of luck.

If you are desperate you could power down the system, remove the disks and send them to a data recovery company. They could attempt to recover your data for you and send it back on CDs or DVDs. This is quite an expensive proposition though.
Avinash20
Honored Contributor

Re: How to recovey directory which has been removed

You have run a very destructive command.. Always use -i (interactive), in case of using these command.

You need to restore from backup.

PS: Please assign points if you find your answers
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Arturo Galbiati
Esteemed Contributor

Re: How to recovey directory which has been removed

Hi,
restore it from backup.
Rgds,
Art
Md. Farhan A Azam
Trusted Contributor

Re: How to recovey directory which has been removed

you can restore from backup, if you have good known backup of removed directory.
V. Nyga
Honored Contributor

Re: How to recovey directory which has been removed

Hi,

... or, if you/a collegue have a similar ws, you can try to restore it from there.
tar the directory at the good ws and tranfer/copy it to the bad one.

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Hudson Hua
Occasional Advisor

Re: How to recovey directory which has been removed

Thank you very much, I didn't backup them before. Now I reinstall the application and learn a lesson.