LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-11-2004, 06:58 AM   #1
ash4stuff
Member
 
Registered: Aug 2003
Location: Viena
Distribution: Debian Sarge
Posts: 139

Rep: Reputation: 15
error in backup script, deleted almost all data :(


IF YOU WANT TO SKIP THE STORY AND GO TO THE QUESTION FAST LOOK BELOW:

Hi there. As most of you know, ext3 doesn't have a undelete, and if u rm -r at the root of a filesystem, well... everything is gone.

I did a rm -r /mnt instead of a rm -r ./mnt and lost all data, most of the backups too, (i backed up to other hard disks that are normally only mounted during backups are running, but I was testing backup scripts, so....)


ext3 deletes all the nodes for good, so no easy undelete for ext3, so I unmounted all partitions, and took the drive to professionals and see what can be done.

All the data is there, but no info about file names,dirs, etc... so they are going to do a complicated header scan through the whole disk (about 60 GB of data) and at the end I am going to have a long list of files named generically, 1.jpg, 2.jpg, 1.doc, 2.doc... the header anaylsis will hopefully find out what file type each file is, so at least i will know if its a doc or a jpg, and with some they will be able to put a guessed name on it.

I havent been able to assess the damage, but i think around 90% of all data is backed up. but those 10% are very important, so i am going to have to go through all the 10.000 jpg, 12000 tifs, and 6000 dwg files...

If i have to do in manually, i might as well jump of the bridge right away..

FOR THOSE WHO WANT TO GET TO THE QUESTION FAST:
So this is what i am looking for: a tool or script that will compare the files binary. I could imagine a script with cat, grep, diff, etc.. could probably do the trick, but i dont know how to script. I would have a long list of, for example, word documents, named somehow, and I would want the script to compare each one with every word document in a set of directories and its subdirectories. So I can forget about the ones that match, so I can concentrate on the ones that I know I don't have.

Does anybody have an idea if there are tools that already do this?
Or an easy script, or a pointer? All ideas and suggestions are welcome.

Thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ugent:help recovering deleted data kushalkoolwal Debian 9 12-01-2005 11:21 PM
Software to help me recover 'Deleted' FAT32 Partition Data? flamesrock Linux - Software 8 07-26-2005 10:39 PM
Recovering deleted Data in Redhat 9 linuxeagle Linux - Networking 0 05-29-2004 12:33 PM
Data on Partition deleted rahulnsoni Linux - Newbie 5 05-01-2004 05:58 AM
Recovering deleted data Korff Linux - Software 13 06-23-2003 01:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration