Skip to content

Commit 3d1cd20

Browse files
committed
Added diagnostic runs
1 parent 5047b50 commit 3d1cd20

2 files changed

Lines changed: 110 additions & 0 deletions

File tree

diagnose_paths.log1

Whitespace-only changes.

rsync_dryrun.out

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,3 +326,113 @@ nohup: ignoring input
326326
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
327327
OSError: [Errno 9] Bad file descriptor
328328

329+
330+
331+
chapman@chapman-htpc:~/projects/wd-mycloud-rsync-recovery$ sudo $(poetry env info --executable) scripts/diagnose_paths.py --db /mnt/backupdrive/restsdk/data/db/index.db --source /mnt/backupdrive/restsdk/data/files/ --samples 200
332+
333+
============================================================
334+
Path Reconstruction Diagnosis
335+
============================================================
336+
337+
Checking database...
338+
Files in database: 1,655,973
339+
340+
Sampling 200 canonical paths from database...
341+
ℹ️ Loading canonical paths from database...
342+
✅ Loaded 1,655,972 canonical paths
343+
Got 200 sample paths
344+
345+
Sample canonical paths from DB:
346+
------------------------------------------------------------
347+
OSxData/iPhotos/iPhotoLibrary/Database/Faces/Detected/aWFnzuthR3WV43gNoTbJ+Q.apdetected
348+
OSxData/iPhotos/iPhotoLibrary2/Thumbnails/2014/05/22/20140522-121350/OJkGf2H%ShSU7kX81W%beA
349+
OSxData/iPhotos/Photos Library.photoslibrary/resources/media/face/45/00/facetile_4575.jpeg
350+
OSxData/iPhotos/Photos Library.photoslibrary/resources/proxies/derivatives/34/00/34b0
351+
OSxData/iPhotos/iPhotoLibrary/Database/Versions/2016/07/25/20160725-144452/1wpF1MzISjKAxzCa2rCBqA/Version-0.apversion
352+
OSxData/iPhotos/iPhotoLibrary2/Masters/2016/11/13/20161113-023725/IMG_4591.JPG
353+
OSxData/iPhotos/iPhotoLibrary2/Database/Versions/2014/08/04/20140804-013619
354+
iOSBackup/24a6451efc4c87aef1732130d05bd84086533164/8f/._8f15e0d3986b7ca7c540ac95c6e37bfab62803ce
355+
OSxData/iPhotos/iPhotoLibrary/Database/Faces/Detected/SdH+MUczRQiItug8ZexB8w.apdetected
356+
OSxData/iPhotos/iPhotoLibrary/Database/Versions/2013/06/10/20130610-075224/v%UVvBVNSZiIjqwWkdSVbw/Master.apmaster
357+
358+
Analyzing source directory structure...
359+
Top-level directories: 32
360+
Top-level files: 0
361+
362+
Top-level directories in source:
363+
📁 2/
364+
📁 3/
365+
📁 4/
366+
📁 5/
367+
📁 6/
368+
📁 7/
369+
📁 a/
370+
📁 b/
371+
📁 c/
372+
📁 d/
373+
📁 e/
374+
📁 f/
375+
📁 g/
376+
📁 h/
377+
📁 i/
378+
... and 17 more
379+
380+
Sample actual file paths in source:
381+
------------------------------------------------------------
382+
l/lmwgejlyxftrfahgqld4iy5z
383+
l/l7n3bhrnowlamtmofnjogq7q
384+
l/lhe7s3on3f4xcfzznhellzvh
385+
l/lok3wzt7udyqmlry6rpkxfnv
386+
l/lwpjmarf3ohd4gxrpj76oqg6
387+
l/lnhid3ald2c3saa7qq7agbxs
388+
l/l5gii5upl6rrbmhmihcgarop
389+
l/luepjv3dh47f7qxsb3ta74h3
390+
l/lmb3cr74rmsqsb4756or4hg5
391+
l/ll4p274j562amzaiiergt6tx
392+
393+
Checking if canonical paths exist in source...
394+
395+
✅ Found: 0/200 (0.0%)
396+
❌ Not found: 200/200 (100.0%)
397+
⚠️ Partial match: 0/200 (0.0%)
398+
399+
Paths not found at all:
400+
------------------------------------------------------------
401+
OSxData/iPhotos/iPhotoLibrary/Database/Faces/Detected/aWFnzuthR3WV43gNoTbJ+Q.apdetected
402+
OSxData/iPhotos/iPhotoLibrary2/Thumbnails/2014/05/22/20140522-121350/OJkGf2H%ShSU7kX81W%beA
403+
OSxData/iPhotos/Photos Library.photoslibrary/resources/media/face/45/00/facetile_4575.jpeg
404+
OSxData/iPhotos/Photos Library.photoslibrary/resources/proxies/derivatives/34/00/34b0
405+
OSxData/iPhotos/iPhotoLibrary/Database/Versions/2016/07/25/20160725-144452/1wpF1MzISjKAxzCa2rCBqA/Version-0.apversion
406+
407+
============================================================
408+
Analysis
409+
============================================================
410+
411+
DB path prefixes (first folder):
412+
OSxData: 82
413+
iPhone-Ash Camera Roll Backup: 9
414+
iOSBackup: 5
415+
Eric-iPhone11-ProMax Camera Roll Backup: 2
416+
Eric-iPhone7-Plus Camera Roll Backup: 1
417+
OSxBackup: 1
418+
419+
Source path prefixes (first folder):
420+
l: 20
421+
422+
DB path patterns:
423+
folder_style: 100
424+
425+
============================================================
426+
Recommendations
427+
============================================================
428+
429+
⚠️ CRITICAL: No canonical paths found in source!
430+
This suggests a fundamental path reconstruction mismatch.
431+
The DB paths don't match the actual source file structure.
432+
433+
Possible causes:
434+
- Source directory is wrong
435+
- Path reconstruction algorithm needs adjustment
436+
- Files are stored with contentID names, not folder paths
437+
438+
chapman@chapman-htpc:~/projects/wd-mycloud-rsync-recovery$

0 commit comments

Comments
 (0)