SUMMARY: Accidentally removing a file with no backup...

Date: Thu Jul 18 1996 - 12:34:32 CDT


Once again, I am astounded by the quick and varied responses.
There is always a solution from someone out there.

First of all, my original request boiled down to this:

> I just accidentally removed a script that one of my assistants
> just finished developing for me after 3 days hard work on his
> part.
> Is there anyway that I can recover this script?
> No, there are no backups of this machine.
> No, he did not make any copies of the script.

Some additional information to answer some of the responses:

Reason for no backups: Machine is in the process of going
  into production, has not been completely integrated into
  current network yet.

Reason for not unmounting and search raw disk: Script was
  being edited directly on the /usr partition. Kind of hard
  to unmount that and get anything done, but I guess it could
  have been done going into single user mode and mounting as

Already checked for backup files in /var/tmp and /tmp, none found.

And, no, neither of us had run a more or cat of the file prior to
removing the script.

Recovery suggestions:

1) cat/more/grep the raw disk file, using dd to grab the disk blocks
2) use file system debugger (fsdb), not on my 4.x system
2) no, tough luck

Preventative measures suggested:

1) alias rm to be rm -i
2) use a configuration management environment
3) integrate backups on new machines prior to allowing developmen
     on machine

Also, the script was not so critical that it could not be rewritten
by my assistant. In fact, that was the main reason I liked the
following response:

> From: Herbert Wengatz <>
> The good news is, that your assistant will be much faster now, because
> he already has all the needed knowledge and will perhaps do some things
> now more intelligently. :-)
> So your tool will be for sure better than the old one!
> (This is the way all programmers should work. - Write it once. Throw it
> all away. Write it again. - It's far better then!)

The script has already been rewritten and _is_ much better than before.
Thanks again to all of the following for their quick responses and good
advice for the future, you know, when I accidentally remove another
important file!

From: Leif Hedstrom <>
From: (Bill Shorter - Local Account)
From: james mularadelis <>
From: Robbie Honerkamp <>
From: "Mark P. Beckman" <>
From: (Patrick O'Brien)
From: James Ashton <>
From: "Steven L. Jenkins" <>
From: (Mattias Zhabinskiy)
From: Herbert Wengatz <>
From: (Marc S. Gibian)
From: ("Michael Salehi x22725")
From: (Stan Higa)
From: "Edgar V.S. Der-Danieliantz" <>
From: "Trevor Paquette" <>
From: Richard Pieri <>
From: Gerhard den Hollander <>
From: (Sesharao Patchipala)

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:05 CDT