HELP! how do I undelete a file!??

HELP! how do I undelete a file!??

Post by Alan W. Jurgense » Thu, 18 Mar 1999 04:00:00



Help,

we've mistakenly deleted some SCO progress database files...

HOW CAN WE UNDELETE THESE, IS IT POSSIBLE?

yeah there is a backup, but that puts everything out of sync...



Your help is greatly apprecitated!!!!

thankx  alan
--
          +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
                 Alan W. Jurgensen  -  Full Compass Systems        

          +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+

 
 
 

HELP! how do I undelete a file!??

Post by John DuBo » Fri, 19 Mar 1999 04:00:00




Quote:>we've mistakenly deleted some SCO progress database files...

>HOW CAN WE UNDELETE THESE, IS IT POSSIBLE?

If you're running 3.2v5, do 'undelete -l' in the directory you deleted the
files from.  If it prints the name of the files (followed by version numbers),
you're in luck.  However, it probably won't; in order for versions to be saved,
file versioning has to be turned on on the filesystem and has to be enabled on
any directories you want it to work in.  It's one of the "stealth" features of
the HTFS filesystem - little known, little used.  

        John
--


 
 
 

HELP! how do I undelete a file!??

Post by Andrew Smallsh » Fri, 19 Mar 1999 04:00:00



> Help,

> we've mistakenly deleted some SCO progress database files...

> HOW CAN WE UNDELETE THESE, IS IT POSSIBLE?

Yes.  Others have pointed out versioning and the trash can, but these are
special cases.  Generally, you _can_ recover a deleted file, but it's a
long, boring job.  Unmount the filesystem as soon as you realise your
mistake, then search the raw device corresponding to that filesystem's
division for strings you know were in your file, but you'll have to do
this repeatedly since the file will almost inevitably be fragmented.
I've done this once before: even though things worked in my favour (small
file size ~20K of human-readable C source) it still took a while to sort
out, particulary as there were several versions of the file lying around
on disk.

Quote:> yeah there is a backup, but that puts everything out of sync...

Then use the backup.  Less hassle & downtime, even if it does have to be
brought back up to date.  If bringing it back up to date is too much
trouble, you aren't doing backups frequently enough.

--
Andrew Smallshaw

 
 
 

HELP! how do I undelete a file!??

Post by Atul Ping » Fri, 19 Mar 1999 04:00:00


Hello,

    I'm sorry to say this but there is no way you can undelete a file on
UNIX unless
you've modified your 'rm' command to put the files in "trashcan"
directory temporarily
which I assume you've not done.

Atul


> Help,

> we've mistakenly deleted some SCO progress database files...

> HOW CAN WE UNDELETE THESE, IS IT POSSIBLE?

> yeah there is a backup, but that puts everything out of sync...



> Your help is greatly apprecitated!!!!

> thankx  alan
> --
>           +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
>                  Alan W. Jurgensen  -  Full Compass Systems

>           +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+