Better Programming

Advice for programmers.

Follow publication

Corrupted Hard Drive? Python to the Rescue!

Angela Pond
Better Programming
Published in
5 min readApr 19, 2022
Photo by George Milton https://www.pexels.com/@george-milton/

My (very specific) problem

An actual estimate of the remaining backup time using Disk Drill. For context, 8489 hours is 354 days, or a little less than A YEAR.

The Python Solution

1. Reproduce the directory tree in a backup iCloud directory

2. Copy each individual file to its sibling location on iCloud

A visualization of the parts recovered vs lost across the chosen “important” directories.
Angela Pond
Angela Pond

Written by Angela Pond

Data Scientist | Astrophysicist | Wannabe artist

Responses (6)

Write a response