Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Create "sticky" Time Machine exclusions ' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create "sticky" Time Machine exclusions
Authored by: axcess99 on Apr 03, '13 08:15:22AM

This hint is somewhat vague in its description. What does "the item you exclude remains in the Time Machine exclusion list even if you move it" mean. I could interpret that as either if you move the file the actual file will still be excluded or that the original path will be excluded.

From my own experiments:
1) the flag should be lower-case not upper-case, upper-case -P is not (at least by recognized by 10.8, unless this somehow an old flag that does something different than in 10.8)
2) when -p is absent the exclusion is based on setting metadata on the file. The "physical" file itself is what is being marked as excluded. For example, if you were to `tmutil addexclusion ~/Downloads` and then rename ~/Downloads to ~/Downloads_old, Downloads_old is excluded and any new Downloads directory would be backed up.
3) -p makes it exclude by path. For example, if you were to `tmutil addexclusion -p ~/Downloads` and then rename ~/Downloads to ~/Downloads_old, Downloads_old is now being backed up and and any new ~/Downloads directory would not be.
4) using `-p` requires root privileges, so you need a root shell or you need to be an administrator level user and need to use `sudo tmutil addexclusion -p [path]`





[ Reply to This | # ]
Create "sticky" Time Machine exclusions
Authored by: kirkmc on Apr 03, '13 08:51:22AM

I've corrected the -P to -p.

See man tmutil for more about this.

---
Mac OS X Hints editor - Macworld senior contributor
http://www.mcelhearn.com



[ Reply to This | # ]