Trying to recover from a bad RAID rebuild
May 24, 2012 6:42 AM Subscribe
I have a NAS appliance that crashed last weekend. The IT guys apparently / maybe didn't recover it in the right way? There's about 50,000 directories in a "lost+found" directory each with a numeric name like "#4289756". It looks as if all the missing files are within these directories, each with the original date and owner information (Linux). I need to organize them so they are findable to the staff.
posted by nedpwolf to technology (6 answers total)
My goal is to copy / move these files into a structure so that each employee has their own folder with their own files, and each folder is further divided by month.
The appliance itself is running a Busybox, a stripped down Linux version that only supports a subset of the typical Bash commands. I thought I could use a script with the "find" command to sort them by owner and date and then pipe that to "-exec cp" to the appropriate place, but it looks like Busybox doesn't have that ability.
1. A network of Windows machines
2. A working knowledge of Bash scripting (no expert, mind you)
3. The ability to install a Linux VM on one of the Windows machines
4. Cygwin already installed on one of them
I get the concept of what needs to be done, but the devil is in the details, and I could sure use some help. Anyone?