Script that rebuilds folder structure of a accidentally deleted disk
Hi all:
After an imprudent execution of a Rsync script, I deleted 50k files of my hardisk. Fortunately, I could recover them (file names, attributes, etc), but I lost the folder structure.
This is what I have now:
List of the files that has been deleted with their full path:
"DISCO ROJO/recuperado/Video/mpg/file000160.mpg"
"DISCO ROJO/recuperado/Video/mpg/file000159.mpg"
..
In the other hand.. (thanks to diskdrill) I got all files on a flat folder structure using random directory names:
./temp68554
./temp68555
./temp68556
./temp68557
Each temp folder match with old folder structure... it means that I.E.. the content of "./temp68557" is the content of the old "DISCO ROJO/recuperado/Video/mpg/
I'm finding ways to identify temp folder name with the old one.. and do a mv / cp script for that.
Any ideas?
Thanks
|