Operating System - HP-UX
1833757 Members
2445 Online
110063 Solutions
New Discussion

How to recover deleted file in HP-UX 11

 
kodali damodar
Occasional Contributor

How to recover deleted file in HP-UX 11

Hello,
I am unknowingly deleted one file using rm command. Is there any way to recover that file.
10 REPLIES 10
A. Clay Stephenson
Acclaimed Contributor

Re: How to recover deleted file in HP-UX 11

Can you say backup? For all practical purposes, on a UNIX box the free blocks get overwritten almost immediately. In extremely rare cases, it is possible to recover the file (or parts of it) if you immediately unmount the filesystem and use tools like fsdb but your changes are extremely small.

Go find your backup media.
If it ain't broke, I can fix that.
twang
Honored Contributor

Re: How to recover deleted file in HP-UX 11

In this situation, I think the only way is that you need to recover the file from your backup. Do you have regular backup strategy? if no, i think you should create one. For workstation, i currently use ignite-ux to backup both user & system data.
kodali damodar
Occasional Contributor

Re: How to recover deleted file in HP-UX 11

Fortunately i got backup tape and I can able to get back my file. But if backup is not available what will be the solution.
Patrick Wallek
Honored Contributor

Re: How to recover deleted file in HP-UX 11

Pray.

There is no easy surefire way to recover a file that has been deleted. HP-UX does NOT have the concept of a trash can.
lawrenzo_1
Super Advisor

Re: How to recover deleted file in HP-UX 11

as mention, there is no way I know of to recover a deleted file unless backed up.

The is a utility in sam that lets you schedule backups on your server or you can purchase lots of 3rd party software as well as hp backup software - see the bloew link

http://h20000.www2.hp.com/bizsupport/search/search.jsp?locale=en_US&tx=backup


regards lawz
hello
Steven E. Protter
Exalted Contributor

Re: How to recover deleted file in HP-UX 11

Restore from the backup tape. No waste basket,unless you are using CDE and I've never had occaision to recover a file from there.

The command line is permanent.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Cheryl Griffin
Honored Contributor

Re: How to recover deleted file in HP-UX 11

HGN
Honored Contributor

Re: How to recover deleted file in HP-UX 11

Hi

As mentioned by others here there is no way to recover a deleted file. The only other option is restoring from a backup if you have one.

I hope you can take this as an example and do a daily/weekly backup of the server.

Rgds

HGN
Rashid Hamid
Regular Advisor

Re: How to recover deleted file in HP-UX 11

Hi

The only way to recovery the deleted file is using backup. You can use fbackup, tar, cpio dd command or using third party backup such as omniback, legato, veritas, bakbone, etc...
I'm Parit Madirono/Parit Betak Boyz
kodali damodar
Occasional Contributor

Re: How to recover deleted file in HP-UX 11

I can able to solve problem using backup