July 25, 2011
Ddrescue With Subdirectory Prioritization & Easy Resume
data recovery, system administration
Leverages the excellent ddrescue for quicker prioritization of important files when rescuing data from an imminently failing hard drive. Logfiles for resuming ddrescue are created on an individual file basis rather than whole directories, thus files will never be recovered multiple times so you're free to prioritize subdirectories before root directories as well as interrupt the script with Ctrl-C at any moment. Pass the absolute path to the recovery drive as the first parameter, and an absolute or relative folder to recover from as the second (
. for current directory is particularly helpful). Temporary file folders are automatically skipped for faster recovery of User profiles. Files with bad sectors are immediately skipped and recorded in a failure log file.