garote: (machine)
[personal profile] garote
For the internet to slurp:

So your time machine backup is corrupt and you need to restore a piece from it manually, eh? Many people have been there before. You do a "sudo ditto" to copy out the chunk, but, something's wrong with all the files - you can't write to them. Applications complain about the permissions but nothing appears to be wrong at the UNIX level... What's the deal?

Extended attributes, and access control lists (ACLs), my friend. Time to remove them all. The easiest way is the nuclear option:

Recursively remove all time-machine related extended attributes:
sudo xattr -d -r "com.apple.metadata:_kTimeMachineOldestSnapshot" restored_folder
sudo xattr -d -r "com.apple.metadata:_kTimeMachineNewestSnapshot" restored_folder
sudo xattr -d -r "com.apple.quarantine" restored_folder

Recursively remove all ACLs:
sudo chmod -R -N restored_folder

If you need to, change the owner of everything to yourself:
sudo chown -R your_username restored_folder

Congratulations, you have de-crappified your manually extracted files.

Date: 2015-03-26 03:39 am (UTC)
From: [identity profile] juan-gandhi.livejournal.com
You won't believe how long it took me to figure out it's not about Tardis manual or UWTB or something.

Profile

garote: (Default)
garote

January 2026

S M T W T F S
    123
45678910
11121314151617
1819202122 2324
25 262728293031

Most Popular Tags

Page generated Feb. 3rd, 2026 12:28 pm