I have an old Time Machine backup and would like to recover the latest version of the files without restoring the backup to a whole computer.
For example, say that the Time Machine backup drive has two files:
Backups.backupdb/Drive 1/2008-01-01-080000/Macintosh HD/Users/user/Documents/file1.doc
Backups.backupdb/Drive 1/2008-01-01-080000/Macintosh HD/Users/user/Documents/file2.doc
Backups.backupdb/Drive 1/2008-02-01-080000/Macintosh HD/Users/user/Documents/file1.doc
I want to recover this backup with the same folder structure and the latest version of each file, e.g.:
user/Documents/file1.doc (from 2008-02-01)
user/Documents/file2.doc (from 2008-01-01)
For a few files and two backups, it's easier to do by hand. But for nested tree structures and multiple backups, it quickly becomes tedious.
I searched online for macos time machine python script deduplicate multiple backup versions
without results.
Does such a tool or script already exist in bash
or python
or would I need to code it?
file1.doc
was unchanged, so it is present only in the2008-02-01
backup, as far as I understand. But if Time Machine has the latest version of all files inLatest
thanks to hard links, then I only need to copy the latest backup. I'll check that in a few weeks when I have access to the backup again.